Skip to content

Commit

Permalink
docs: Changes 'dencrypt' to 'decrypt' (#97)
Browse files Browse the repository at this point in the history
Occurs in 2 places

I updated the old repo earlier, looping back to fix this repo too.
  • Loading branch information
WalterHub authored and JustinBeckwith committed Dec 12, 2018
1 parent 15809bc commit 8f06f06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kms/decrypt.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ async function decrypt(
);
const ciphertext = contentsBuffer.toString('base64');

// Dencrypts the file using the specified crypto key
// Decrypts the file using the specified crypto key
const [result] = await client.decrypt({name, ciphertext});

// Writes the dencrypted file to disk
// Writes the decrypted file to disk
const writeFile = promisify(fs.writeFile);
await writeFile(plaintextFileName, Buffer.from(result.plaintext, 'base64'));
console.log(
Expand Down

0 comments on commit 8f06f06

Please sign in to comment.