JavaScript online for MD5, SHA, AES, Rabit, RC4, TripleDES Ripemd160 encryption decryption tool -toolfk online Programmer toolbox
This paper to recommend [ToolFk] is a programmers often use a free online test kit, ToolFk feature is focused on everyday programmer development tools, without having to install any software, as long as the content execution affixed by a button, able to obtain the contents of the desired results.ToolFk also supports BarCode Barcode generated online , QueryList collector , PHP code is run online , PHP confusion, encryption, decryption , Python code is run online , JavaScript online operation ,YAML formatting tools , HTTP simulation query tool , HTML online toolbox , JavaScript online Toolbox ,CSS online toolbox , JSON online toolbox , unixtime timestamp conversion , Base64 / the URL of / native2ascii conversion , CSV conversion kit , XML online toolbox , the WebSocket online tools , Markdown online toolbox , Htaccess2nginx conversion, Hex conversion online , online encryption toolkit ,online pseudo-original tools , online APK decompile , online web screenshot tool , online random password generation , online generate two-dimensional code qrcode , online Crontab Expression Builder ,the online short URL Generator , Online calculator tool . And more than 20 daily programmer development tools, can be considered a very comprehensive website programmer's toolbox.
Teaching Code
This tool [online MD5, SHA, AES, Rabit, RC4, TripleDES Ripemd160 encryption and decryption tool]?-Dependent code base is https://github.com/brix/crypto-js
STEP 1
STEP 2
? THE CORE CODE IS AS FOLLOWS
function md5_encode (key, message) { return CryptoJS.MD5 (key + message) .toString (); } function macmd5_encode (key, message) { return CryptoJS.HmacMD5 (message, key) .toString (); } function ase_encode (key, message) { return CryptoJS.AES.encrypt (message, key) .toString (); } function ase_decode (key, message) { var decryptResult = CryptoJS.AES.decrypt (message, key); return decryptResult.toString (CryptoJS.enc.Utf8); } function des_encode (key, message) { toolfk.report ( 'des_encode', key + ":" + message); return CryptoJS.DES.encrypt (message, key) .toString (); } function des_decode (key, message) { var decryptResult = CryptoJS.DES.decrypt (message, key); return decryptResult.toString (CryptoJS.enc.Utf8); } function rabit_encode (key, message) { return CryptoJS.Rabbit.encrypt (message, key) .toString (); } function rabit_decode (key, message) { var decryptResult = CryptoJS.Rabbit.decrypt (message, key); return decryptResult.toString (CryptoJS.enc.Utf8); } function rabit_legacy_encode (key, message) { return CryptoJS.RabbitLegacy.encrypt (message, key) .toString (); } function rabit_legacy_decode (key, message) { var decryptResult = CryptoJS.RabbitLegacy.decrypt (message, key); return decryptResult.toString (CryptoJS.enc.Utf8); } function sha1_encode (key, message) { return CryptoJS.SHA1 (key + message) .toString (); } function sha224_encode (key, message) { return CryptoJS.HmacSHA224 (message, key) .toString (); } function sha256_encode (key, message) { return CryptoJS.SHA256 (key + message) .toString (); } function sha384_encode (key, message) { return CryptoJS.HmacSHA384 (message, key) .toString (); } function sha512_encode (key, message) { return CryptoJS.SHA512 (key + message) .toString (); } function sha3_encode (key, message) { return CryptoJS.SHA3 (key + message) .toString (); } function tripledes_encode (key, message) { return CryptoJS.TripleDES.encrypt (message, key) .toString (); } function tripledes_decode (key, message) { var decryptResult = CryptoJS.TripleDES.decrypt (message, key); return decryptResult.toString (CryptoJS.enc.Utf8); } function rc4_encode (key, message) { return CryptoJS.RC4.encrypt (message, key) .toString (); } function rc4_decode (key, message) { var decryptResult = CryptoJS.RC4.decrypt (message, key); return decryptResult.toString (CryptoJS.enc.Utf8); } function rc4drop_encode (key, message) { return CryptoJS.RC4Drop.encrypt (message, key) .toString (); } function rc4drop_decode (key, message) { var decryptResult = CryptoJS.RC4Drop.decrypt (message, key); return decryptResult.toString (CryptoJS.enc.Utf8); } function ripemd160_encode (key, message) { return CryptoJS.RIPEMD160 (key + message) .toString (); } function hmac_piremd160_encode (key, message) { return CryptoJS.HmacRIPEMD160 (message, key) .toString (); }
It is worth a try for three reasons:
- Integrate various programmers often used in development and testing tools.
- Simple and beautiful atmosphere of the site pages
- Online support formatting code execution, APK online decompile, online high-strength password generator, two dozen screenshots online web tools service
This link: http://www.hihubs.com/article/377
留言
發佈留言