refactored sha.js internally with module pattern so that it does not require a reference to the window object... external api stays the same
This commit is contained in:
parent
61d905e5de
commit
1f7a503fb1
|
@ -21,8 +21,8 @@
|
||||||
* - str_sha512
|
* - str_sha512
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function ()
|
var jsSHA = (function () {
|
||||||
{
|
|
||||||
/*
|
/*
|
||||||
* Configurable variables. Defaults typically work
|
* Configurable variables. Defaults typically work
|
||||||
*/
|
*/
|
||||||
|
@ -1190,7 +1190,7 @@
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
window.jsSHA = jsSHA;
|
return jsSHA;
|
||||||
}());
|
}());
|
||||||
|
|
||||||
function str_sha1(str) {
|
function str_sha1(str) {
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
<script type="text/javascript" src="../src/ciphers/asymmetric/elgamal.js"></script>
|
<script type="text/javascript" src="../src/ciphers/asymmetric/elgamal.js"></script>
|
||||||
<script type="text/javascript" src="../src/ciphers/asymmetric/rsa.js"></script>
|
<script type="text/javascript" src="../src/ciphers/asymmetric/rsa.js"></script>
|
||||||
|
|
||||||
|
<script type="text/javascript" src="../src/ciphers/openpgp.crypto.sym.js"></script>
|
||||||
<script type="text/javascript" src="../src/ciphers/openpgp.crypto.js"></script>
|
<script type="text/javascript" src="../src/ciphers/openpgp.crypto.js"></script>
|
||||||
<script type="text/javascript" src="../src/ciphers/openpgp.cfb.js"></script>
|
<script type="text/javascript" src="../src/ciphers/openpgp.cfb.js"></script>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user