Hash functions can encrypt text, but hashes cannot be decrypted. They are useful for encrypting passwords and authenticating messages.
The CryptoJS hash functions return WordArray objects.
MD5 is a popular hash, but is no longer considered secure.
SHA-3 can output hash lengths of 224, 256, 384, or 512 bits. The default is 512 bits.
CryptoJS provides a RIPEMD-160 function which is used in Bitcoin.
Ciphers can encrypt and decrypt data.
The Data Encryption Standard was developed by IBM in the early 1970's and was adopted by the Federal Information Processing Standard (FIPS) in 1977. It is now considered insecure, but the TripleDES function is still considered secure.
The Advanced Encryption Standard is based on Rijndael. Adopted by NIST in 2001.
Stream cipher introduced in 2003.
Rivest Cipher 4. Designed in 1987 and leaked in 1994. While insecure, its speed and simplicity led to wide adoption. It is utilized in SSL, WEP and TLS protocols.