wwwtyro / cryptico

An easy-to-use encryption system utilizing RSA and AES for javascript.
http://wwwtyro.github.com/cryptico
1.18k stars 344 forks source link

Can't encrypt text #38

Closed frgt10cs closed 5 years ago

frgt10cs commented 5 years ago

I try to encrypt message var x = cryptico.encrypt("mytext",cryptico.publicKeyString(staticKeys.RSA)); where staticKeys.RSA is RSAKey And i get error:

aes.js:131 Uncaught TypeError: Cannot read property '177' of undefined
at Object.my.MixColumns (aes.js:131) at Object.my.Encrypt (aes.js:86) at Object.my.encryptAESCBC (cryptico.js:3395) at Object.my.encrypt (cryptico.js:3493) at HTMLButtonElement.CreateKeysAsker.generator.onclick (script.js:162) my.MixColumns @ aes.js:131 my.Encrypt @ aes.js:86 my.encryptAESCBC @ cryptico.js:3395 my.encrypt @ cryptico.js:3493 CreateKeysAsker.generator.onclick @ script.js:162

What's wrong?