backwards compatibility question
idavollen opened this issue · comments
idavollen commented
Hei,
I used to use the old version 1.6.2 of jsSHA
var shaObj = new jsSHA(value, 'ASCII');
var hash = shaObj.getHash('SHA-256', 'B64');
now I've upgraded to version 2.2.0
let shaObj = new jsSHA('SHA-256', 'TEXT');
shaObj.update(value);
let hash = shaObj.getHash('HEX');
However, for the same value as input, the generated hash values are different from version to version. Is there anything wrong my usage of jsSHA or it's a break of compatibility between versions?
Thanks in advance!
idavollen commented
it's my wrong usage!