Skip to content

Commit 6201c8b

Browse files
authored
Update README.md
1 parent 49fdbdd commit 6201c8b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,12 @@ try {
7272
generateKey("Arnold", "salt", 5000, 512).then(key => {
7373
console.log('Key:', key);
7474
encrypt("These violent delights have violent ends", key).then(({cipher, iv}) => {
75-
console.log("Encrypted: ", cipher);
75+
console.log("Encrypted:", cipher);
7676

7777
decrypt({ cipher, iv }, key).then(text => {
7878
console.log("Decrypted:", text);
79+
}).catch(error => {
80+
console.log(error);
7981
});
8082

8183
Aes.hmac256(cipher, key).then(hash => {

0 commit comments

Comments
 (0)