Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specifying KeySizes while encryption and decryption... #14

Open
Vasanthvivi opened this issue Aug 27, 2023 · 0 comments
Open

Specifying KeySizes while encryption and decryption... #14

Vasanthvivi opened this issue Aug 27, 2023 · 0 comments

Comments

@Vasanthvivi
Copy link

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
}
);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant