Hinaser / jscrypto

Crypto library for Node/ES6/Typescript/Browser.
MIT License
37 stars 6 forks source link

Specifying KeySizes while encryption and decryption... #14

Open Vasanthvivi opened 10 months ago

Vasanthvivi commented 10 months ago

While decryption am getting the half of the encrypted data only... compared to the .NET BouncyCastle GCM encryption... In BouncyCastle am getting encrypted data having length 32 whereas in the jsCrypto am getting 16... i cant get the references in the document that provided either in npm js or in the gist...

Here is the configuration... let encryptedData = jsCrypto.AES.encrypt( msg, key,{ iv:iv, mode: jsCrypto.mode.GCM, padding: jsCrypto.pad.NoPadding } );