$k. Crypto

new Crypto()

Methods

(static) availableAlgorithms() → {object}

Returns an object containing the names of available digest and cipher algorithms.

Version
  • Experimental feature, might be removed at any time
Returns:
Type: 
object

(static) createHash(algorithm) → {$k.Hash}

Creates a hash object using the given algorithm.

Parameters:
NameTypeDescription
algorithmstring

The algorithm to use

Version
  • Experimental feature, might be removed at any time
Returns:

The hash object

Type: 
$k.Hash