MomentJS
To Parse, validate, manipulate, and display dates and times we integrate MomentJS
For more help, visit the official documentation
NumeralJS
It is possible to make use of the NumeralJS library in server-side business objects.
The library can be found here.
CryptoJS
The full CryptoJS library can be used in server-side business objects of Simplifier.
AES
The Advanced Encryption Standard (AES) is a U.S. Federal Information Processing Standard (FIPS). It was selected after a 5-year process where 15 competing designs were evaluated.
File | Type | Usage | Example |
aes.js | Cipher | Data | CryptoJS.AES.encrypt(“Message”, “Secret Passphrase”) CryptoJS.AES.decrypt(encrypted, “Secret Passphrase”) |
HMAC
Keyed-hash message authentication codes (HMAC) is a mechanism for message authentication using cryptographic hash functions.
HMAC can be used in combination with any iterated cryptographic hash function.
File | Type | Usage | Example |
hmac-md5.js | Hash | Messages | CryptoJS.HmacMD5(“Message”, “Secret Passphrase”) |
hmac-ripemd160.js | CryptoJS.HmacRIPEMD160(“Message”, “Secret Passphrase”) | ||
hmac-sha1.js | CryptoJS.HmacSHA1(“Message”, “Secret Passphrase”) | ||
hmac-sha3.js | CryptoJS.HmacSHA3(“Message”, “Secret Passphrase”) | ||
hmac-sha224.js | CryptoJS.HmacSHA224(“Message”, “Secret Passphrase”) | ||
hmac-sha256.js | CryptoJS.HmacSHA256(“Message”, “Secret Passphrase”) | ||
hmac-sha384.js | CryptoJS.HmacSHA384(“Message”, “Secret Passphrase”) | ||
hmac-sha512.js | CryptoJS.HmacSHA512(“Message”, “Secret Passphrase”) |
MD5
MD5 is a widely used hash function. It’s been used in a variety of security applications and is also commonly used to check the integrity of files. Though, MD5 is not collision resistant, and it isn’t suitable for applications like SSL certificates or digital signatures that rely on this property.
File | Type | Usage | Example |
md5.js | Hash | Integrity checks | CryptoJS.MD5(“Message”) |
PBKDF2
PBKDF2 is a password-based key derivation function. In many applications of cryptography, user security is ultimately dependent on a password, and because a password usually can’t be used directly as a cryptographic key, some processing is required.
A salt provides a large set of keys for any given password, and an iteration count increases the cost of producing keys from a password, thereby also increasing the difficulty of attack.
File | Type | Usage | Example |
pbkdf2.js | Hash | Passwords | var salt = CryptoJS.lib.WordArray.random(128/ 8)
CryptoJS.PBKDF2(“Secret Passphrase”, salt, {keySize: 512 / 32}) |
Rabbit
Rabbit is a high-performance stream cipher and a finalist in the eSTREAM Portfolio. It is one of the four designs selected after a 3 1/2-year process where 22 designs were evaluated.
File | Type | Usage | Example |
rabbit.js | Cipher | Streams | CryptoJS.Rabbit.encrypt(“Message”, “Secret Passphrase”); CryptoJS.Rabbit.decrypt(encrypted, “Secret Passphrase”) |
rabbit-legacy.js | CryptoJS.RabbitLegacy.encrypt(“Message”, “Secret Passphrase”) CryptoJS.RabbitLegacy.decrypt(encryptedLeg, “Secret Passphrase”) |
RC4
RC4 is a widely-used stream cipher. It’s used in popular protocols such as SSL and WEP. Although remarkable for its simplicity and speed, the algorithm’s history doesn’t inspire confidence in its security.
File | Type | Usage | Example |
rc4.js | Cipher | Streams | CryptoJS.RC4.encrypt(“Message”, “Secret Passphrase”) CryptoJS.RC4.decrypt(encrypted, “Secret Passphrase”) |
RC4Drop
It was discovered that the first few bytes of keystream are strongly non-random and leak information about the key. We can defend against this attack by discarding the initial portion of the keystream. This modified algorithm is traditionally called RC4-drop.
By default, 192 words (768 bytes) are dropped, but you can configure the algorithm to drop any number of words.
File | Type | Usage | Example |
rc4.js | Cipher | Streams | CryptoJS.RC4Drop.encrypt(“Message”,”Secret Passphrase”) CryptoJS.RC4Drop.decrypt(encrypted, “Secret Passphrase”, {drop: 3072 / 4}) |
RIPEMD-160
Strengthend version of the now insecure RIPEMD hash function.
File | Type | Usage | Example |
ripemd160.js | Hash | Cryptocurrencies | CryptoJS.RIPEMD160(“Message”) |
SHA-1
The SHA hash functions were designed by the National Security Agency (NSA). SHA-1 is the most established of the existing SHA hash functions, and it’s used in a variety of security applications and protocols. Though, SHA-1’s collision resistance has been weakening as new attacks are discovered or improved.
File | Type | Usage | Example |
sha1.js | Hash | Integrity checks | CryptoJS.SHA1(“Message”) |
SHA-2
File | Description | Type | Usage | Example |
sha256.js | SHA-256 is one of the four variants in the SHA-2 set. It isn’t as widely used as SHA-1, though it appears to provide much better security. | Hash | Integrity checks | CryptoJS.SHA256(“Message”) |
sha512.js | SHA-512 is largely identical to SHA-256 but operates on 64-bit words rather than 32. | CryptoJS.SHA512(“Message”) | ||
sha224.js | CryptoJS also supports SHA-224 and SHA-384, which are largely identical but truncated versions of SHA-256 and SHA-512 respectively. | CryptoJS.SHA224(“Message”) | ||
sha384.js | CryptoJS.SHA384(“Message”) |
SHA-3
SHA-3 is the winner of a five-year competition to select a new cryptographic hash algorithm where 64 competing designs were evaluated.
NOTE: I made a mistake when I named this implementation SHA-3. It should be named Keccak
. Each of the SHA-3 functions is based on an instance of the Keccak algorithm, which NIST selected as the winner of the SHA-3 competition, but those SHA-3 functions won’t produce hashes identical to Keccak.
File | Type | Usage | Example |
sha3.js | Hash | Integrity checks | CryptoJS.SHA3(“Message”) |
DES
DES is a previously dominant algorithm for encryption and was published as an official Federal Information Processing Standard (FIPS). DES is now considered to be insecure due to the small key size.
File | Type | Usage | Example |
tripledes.js | Cipher | Data | CryptoJS.DES.encrypt(“Message”, “Secret Passphrase”) CryptoJS.DES.decrypt(encrypted, “Secret Passphrase”) |
Triple DES
Triple DES applies DES three times to each block to increase the key size. The algorithm is believed to be secure in this form.
File | Type | Usage | Example |
tripledes.js | Cipher | Data | CryptoJS.TripleDES.encrypt(“Message”,”Secret Passphrase”) CryptoJS.TripleDES.decrypt(encrypted,”Secret Passphrase”) |
Lodash
We integrate Lodash for manipulating, search or build complex javascript objects.
For more information, read the documentation