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 Ace Nassri committed Nov 11, 2022
1 parent 89090d7 commit c4d6a60
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 c4d6a60

Please sign in to comment.