Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case "md5": crypto( argu, "MD5" ); break;
- case "sha1": crypto( argu, "SHA1" ); break;
- case "sha256": crypto( argu, "SHA256" ); break;
- case "sha384": crypto( argu, "SHA384" ); break;
- case "sha512": crypto( argu, "SHA512" ); break;
- case "md2": crypto( argu, "MD2" ); break;
- function crypto( arg, alg )
- {
- setTimeout( function() // unsafeWindow cannot call GM_cryptoHash()
- {
- var hashed = GM_cryptoHash( arg, alg );
- if( alg == "SHA512" ) setTimeout( function() { sendMessage( hashed ); }, 1750 );
- else if( alg == "SHA384" || alg == "SHA256" ) setTimeout( function() { sendMessage( hashed ); }, 1500 );
- else setTimeout( function() { sendMessage( hashed ); }, 1000 );
- }, 1);
- }
Advertisement
Add Comment
Please, Sign In to add comment