Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Variables

AES

AES: CipherHelper

Shortcut functions to the cipher's object interface.

example
var ciphertext = CryptoJS.AES.encrypt(message, key, cfg);
var plaintext = CryptoJS.AES.decrypt(ciphertext, key, cfg);

DES

DES: CipherHelper

Shortcut functions to the cipher's object interface.

example
var ciphertext = CryptoJS.DES.encrypt(message, key, cfg);
var plaintext = CryptoJS.DES.decrypt(ciphertext, key, cfg);

RC4

RC4: CipherHelper

Shortcut functions to the cipher's object interface.

example
var ciphertext = CryptoJS.RC4.encrypt(message, key, cfg);
var plaintext = CryptoJS.RC4.decrypt(ciphertext, key, cfg);

RC4Drop

RC4Drop: CipherHelper

Shortcut functions to the cipher's object interface.

example
var ciphertext = CryptoJS.RC4Drop.encrypt(message, key, cfg);
var plaintext = CryptoJS.RC4Drop.decrypt(ciphertext, key, cfg);

Rabbit

Rabbit: CipherHelper

Shortcut functions to the cipher's object interface.

example
var ciphertext = CryptoJS.Rabbit.encrypt(message, key, cfg);
var plaintext = CryptoJS.Rabbit.decrypt(ciphertext, key, cfg);

RabbitLegacy

RabbitLegacy: CipherHelper

Shortcut functions to the cipher's object interface.

example
var ciphertext = CryptoJS.RabbitLegacy.encrypt(message, key, cfg);
var plaintext = CryptoJS.RabbitLegacy.decrypt(ciphertext, key, cfg);

TripleDES

TripleDES: CipherHelper

Shortcut functions to the cipher's object interface.

example
var ciphertext = CryptoJS.TripleDES.encrypt(message, key, cfg);
var plaintext = CryptoJS.TripleDES.decrypt(ciphertext, key, cfg);

Functions

EvpKDF

  • Derives a key from a password.

    example
    var key = CryptoJS.EvpKDF(password, salt);
    var key = CryptoJS.EvpKDF(password, salt, { keySize: 8 });
    var key = CryptoJS.EvpKDF(password, salt, { keySize: 8, iterations: 1000 });

    Parameters

    • password: string | cryptojs.lib.WordArray

      The password.

    • salt: string | cryptojs.lib.WordArray

      A salt.

    • Optional cfg: { hasher?: HasherStatic; iterations: number; keySize: number }

      (Optional) The configuration options to use for this computation.

      • Optional hasher?: HasherStatic
      • iterations: number
      • keySize: number

    Returns WordArray

    The derived key.

Const HmacMD5

  • Shortcut function to the HMAC's object interface.

    example
    var hmac = CryptoJS.HmacMD5(message, key);
    

    Parameters

    Returns cryptojs.lib.WordArray

    The HMA'C.

Const HmacRIPEMD160

  • Shortcut function to the HMAC's object interface.

    example
    var hmac = CryptoJS.HmacRIPEMD160(message, key);
    

    Parameters

    Returns cryptojs.lib.WordArray

    The HMAC.

Const HmacSHA1

  • Shortcut function to the HMAC's object interface.

    example
    var hmac = CryptoJS.HmacSHA1(message, key);
    

    Parameters

    Returns cryptojs.lib.WordArray

    The HMAC.

Const HmacSHA224

  • Shortcut function to the HMAC's object interface.

    example
    var hmac = CryptoJS.HmacSHA224(message, key);
    

    Parameters

    Returns cryptojs.lib.WordArray

    The HMAC.

Const HmacSHA256

  • Shortcut function to the HMAC's object interface.

    example
    var hmac = CryptoJS.HmacSHA256(message, key);
    

    Parameters

    Returns cryptojs.lib.WordArray

    The HMAC.

Const HmacSHA3

  • Shortcut function to the HMAC's object interface.

    example
    var hmac = CryptoJS.HmacSHA3(message, key);
    

    Parameters

    Returns cryptojs.lib.WordArray

    The HMAC.

Const HmacSHA384

  • Shortcut function to the HMAC's object interface.

    example
    var hmac = CryptoJS.HmacSHA384(message, key);
    

    Parameters

    Returns cryptojs.lib.WordArray

    The HMAC.

Const HmacSHA512

  • Shortcut function to the HMAC's object interface.

    example
    var hmac = CryptoJS.HmacSHA512(message, key);
    

    Parameters

    Returns cryptojs.lib.WordArray

    The HMAC.

Const MD5

  • Shortcut function to the hasher's object interface.

    example
    var hash = CryptoJS.MD5('message');
    var hash = CryptoJS.MD5(wordArray);

    Parameters

    Returns cryptojs.lib.WordArray

    The hash.

PBKDF2

  • Computes the Password-Based Key Derivation Function 2.

    example
    var key = CryptoJS.PBKDF2(password, salt);
    var key = CryptoJS.PBKDF2(password, salt, { keySize: 8 });
    var key = CryptoJS.PBKDF2(password, salt, { keySize: 8, iterations: 1000 });

    Parameters

    Returns WordArray

    The derived key.

Const RIPEMD160

  • Shortcut function to the hasher's object interface.

    example
    var hash = CryptoJS.RIPEMD160('message');
    var hash = CryptoJS.RIPEMD160(wordArray);

    Parameters

    Returns cryptojs.lib.WordArray

    The hash.

Const SHA1

  • Shortcut function to the hasher's object interface.

    example
    var hash = CryptoJS.SHA1('message');
    var hash = CryptoJS.SHA1(wordArray);

    Parameters

    Returns cryptojs.lib.WordArray

    The hash.

Const SHA224

  • Shortcut function to the hasher's object interface.

    example
    var hash = CryptoJS.SHA224('message');
    var hash = CryptoJS.SHA224(wordArray);

    Parameters

    Returns cryptojs.lib.WordArray

    The hash.

Const SHA256

  • Shortcut function to the hasher's object interface.

    example
    var hash = CryptoJS.SHA256('message');
    var hash = CryptoJS.SHA256(wordArray);

    Parameters

    Returns cryptojs.lib.WordArray

    The hash.

Const SHA3

  • Shortcut function to the hasher's object interface.

    example
    var hash = CryptoJS.SHA3('message');
    var hash = CryptoJS.SHA3(wordArray);

    Parameters

    Returns cryptojs.lib.WordArray

    The hash.

Const SHA384

  • Shortcut function to the hasher's object interface.

    example
    var hash = CryptoJS.SHA384('message');
    var hash = CryptoJS.SHA384(wordArray);

    Parameters

    Returns cryptojs.lib.WordArray

    The hash.

Const SHA512

  • Shortcut function to the hasher's object interface.

    example
    var hash = CryptoJS.SHA512('message');
    var hash = CryptoJS.SHA512(wordArray);

    Parameters

    Returns cryptojs.lib.WordArray

    The hash.

Generated using TypeDoc