diff --git a/src/ciphers/hash/sha.js b/src/ciphers/hash/sha.js index fd37fbb8..8945fbcf 100644 --- a/src/ciphers/hash/sha.js +++ b/src/ciphers/hash/sha.js @@ -21,8 +21,8 @@ * - str_sha512 */ -(function () -{ +var jsSHA = (function () { + /* * Configurable variables. Defaults typically work */ @@ -1190,7 +1190,7 @@ } }; - window.jsSHA = jsSHA; + return jsSHA; }()); function str_sha1(str) { diff --git a/test/index.html b/test/index.html index 898b8093..873508a8 100644 --- a/test/index.html +++ b/test/index.html @@ -20,6 +20,7 @@ +