Module: crypto/cipher

Symmetric cryptography functions

Source:

Requires

  • module:crypto/cipher/aes
  • module:crypto/cipher/des
  • module:crypto/cipher/cast5
  • module:crypto/cipher/twofish
  • module:crypto/cipher/blowfish

Methods

(static) aes128(key) → {Object}

AES-128 encryption and decryption (ID 7)

Parameters:
Name Type Description
key String

128-bit key

Source:
See:
Requires:
  • module:asmcrypto.js
Returns:
Type
Object

(static) aes192(key) → {Object}

AES-128 Block Cipher (ID 8)

Parameters:
Name Type Description
key String

192-bit key

Source:
See:
Requires:
  • module:asmcrypto.js
Returns:
Type
Object

(static) aes256(key) → {Object}

AES-128 Block Cipher (ID 9)

Parameters:
Name Type Description
key String

256-bit key

Source:
See:
Requires:
  • module:asmcrypto.js
Returns:
Type
Object

(static) blowfish(key) → {Object}

Blowfish Block Cipher (ID 4)

Parameters:
Name Type Description
key String

128-bit key

Source:
See:
Returns:
Type
Object

(static) cast5(key) → {Object}

CAST-128 Block Cipher (ID 3)

Parameters:
Name Type Description
key String

128-bit key

Source:
See:
Returns:
Type
Object

(static) idea()

Not implemented

Source:
Throws:
Error

(static) tripledes(key) → {Object}

Triple DES Block Cipher (ID 2)

Parameters:
Name Type Description
key String

192-bit key

Source:
See:
Returns:
Type
Object

(static) twofish(key) → {Object}

Twofish Block Cipher (ID 10)

Parameters:
Name Type Description
key String

256-bit key

Source:
See:
Returns:
Type
Object