invisal / god_crypto

Pure Javascript/Typescript Crypto Implementation for Deno. AES, RSA, HMAC, and TOTP
MIT License
93 stars 16 forks source link

Error in example! #22

Closed ghost closed 3 years ago

ghost commented 3 years ago

const cipher = await aes.encrypt("This is AES-128-CBC. It works."); console.log(cipher.hex());

// 41393374609eaee39fbe57c96b43a9da0d547c290501be50f983ecaac6c5fd1c const plain = await aes.decrypt(ciper);

Decrypt cipher, no ciper

invisal commented 3 years ago

Thanks for reporting. There is typo in the example. I will fix it soon.