Crypto-JS: JavaScript cryptographic algorithms

Crypto-JS is a growing collection of standard and secure cryptographic algorithms implemented in JavaScript using best practices and patterns. They are fast, and they have a consistent and simple interface. Additionally it offers some helper functions than are often required when working with hashes and cryptography on the web like fast Base64 and UTF8 encoding or decoding.  It’s completely modular. You only need to load the parts that you actually use in your application and there are even several single file bundles that contain sets of cryptographic functions that are often needed together. Crypto-JS can be custom compiled using Google’s Closure Compiler if need be, which makes it an extremely small library to include. It’s a really nice library that provides more cryptographic functions than you could dream of:

  • MD5
  • SHA-1
  • SHA-256
  • AES
  • Rabbit
  • MARC4
  • HMAC
    • HMAC-MD5
    • HMAC-SHA1
    • HMAC-SHA256
  • PBKDF2

Leave a Reply