I use the SJCL library to encrypt / decrypt messages. I have a question that I do not know what AES or SHA256 is used
Here is my code:
var h = sjcl.codec.hex, count = 2048 ; salt = h.fromBits(sjcl.random.randomWords('10','0')); var key = h.fromBits( sjcl.misc.pbkdf2(somePassword, h.toBits(salt), count) ) ;
Further I can encrypt / decrypt, for example
var encMessage = sjcl.encrypt(key, message) ; sjcl.decrypt(key, encMessage) ;
AES or SHA256 or something else?
source share