95
rated 0 times
[
97]
[
2]
/ answers: 1 / hits: 25244
/ 7 Years ago, tue, july 4, 2017, 12:00:00
I have written javascript to for RSASHA256 but gettitng error crypto.js is not defined.
function aaa(message,secret) {
<script src=http://crypto-
js.googlecode.com/svn/tags/3.0.2/build/rollups/hmac-sha256.js></script>;
<script src=http://crypto-
js.googlecode.com/svn/tags/3.0.2/build/components/enc-base64-min.js></script>;
var hash = CryptoJS.HmacSHA256(Message, secret);
var hashInBase64 = CryptoJS.enc.Base64.stringify(hash);
document.write(hashInBase64);
}
More From » sha