Java implements the same DES encryption and decryption algorithm as JS
This article describes the Java implementation of the same DES encryption and decryption algorithm as JS. Share with you for your reference, as follows:
Here is a demonstration of the same DES encryption and decryption algorithm implemented in Java and JS. I won't say much and nonsense. I'll go directly to the code
1、 Java implementation
Operation results:
2、 JS implementation
1、des. JS file
2、des. HTML file
Operation results:
PS: friends interested in encryption and decryption can also refer to our online tools:
Online text encryption and decryption tools (including AES, DES, RC4, etc.): http://tools.jb51.net/password/txt_encode
MD5 online encryption tool: http://tools.jb51.net/password/CreateMD5Password
Online hash / hash algorithm encryption tool: http://tools.jb51.net/password/hash_encrypt
Online MD5 / hash / SHA-1 / SHA-2 / SHA-256 / sha-512 / Sha-3 / ripemd-160 encryption tool: http://tools.jb51.net/password/hash_md5_sha
Online SHA1 / sha224 / sha256 / sha384 / SHA512 encryption tool: http://tools.jb51.net/password/sha_encode
Readers interested in more Java related content can view the topics on this site: summary of Java mathematical operation skills, tutorial on Java data structure and algorithm, summary of Java character and string operation skills, summary of Java DOM node operation skills and summary of Java cache operation skills