asmcrypto / asmcrypto.js

JavaScript Cryptographic Library with performance in mind.
MIT License
661 stars 182 forks source link

Uncaught TypeError: Cannot read property 'encrypt' of undefined #185

Open bhagyachaudhari opened 3 years ago

bhagyachaudhari commented 3 years ago

I want to encrypt using RSA_OAEP_SHA256 at JavaScript side

var encrypted = asmCrypto.RSA_OAEP_SHA256.encrypt(stringToBeEncrypted, pubkey, ""); getting error: Uncaught TypeError: Cannot read property 'encrypt' of undefined

Do you know the solution or any example that would help? Thanks.