This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
api-version: reviewpad.com/v3.x | |
labels: | |
small: | |
color: "#294b69" | |
medium: | |
color: "#a8c3f7" | |
large: | |
color: "#8a2138" |
I hereby claim:
- I am marcelosousa on github.
- I am marceloabsousa (https://keybase.io/marceloabsousa) on keybase.
- I have a public key ASBzOZ92HsyJIBQHNAFRsoY_NTr5529FNSgDX8Zmq0TCjQo
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.gitignore: 5, William Hilton: 100.00 | |
.prettierrc: 8, William Hilton: 100.00 | |
.releaserc: 9, William Hilton: 100.00 | |
azure-pipelines.yml: 60, Jakub Jankiewicz: 3.33, William Hilton: 96.67 | |
index.d.ts: 319, Joel Spadin: 0.63, Jakub Jankiewicz: 5.33, raldone01: 94.04 | |
karma.conf.js: 201, William Hilton: 100.00 | |
LICENSE: 9, William Hilton: 100.00 | |
package-lock.json: 13271, William Hilton: 100.00 | |
package.json: 66, Jesse Ditson: 1.52, William Hilton: 98.48 | |
README.md: 278, fuzzyTew: 2.88, Jakub Jankiewicz: 4.68, William Hilton: 92.45 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { createProbot } = require('probot'); | |
async function dec() { | |
const kms = require('@google-cloud/kms'); | |
const client = new kms.KeyManagementServiceClient(); | |
const ciphertext = "asdadkjasdCASDASdlkjasdasd11"; | |
const name = 'projects/PROJECT-ID/locations/global/keyRings/KEY-NAME/cryptoKeys/CRYPTO-NAME'; | |
const [result] = await client.decrypt({name, ciphertext}); | |
return result.plaintext.toString('ascii'); |