$k. 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
Since
  • 5.3.2
Returns:
Type: 
object

(static) awsSignV4(request, accessKey, secretKey, region, service, sessionTokenopt) → {$k.HttpRequest}

Adds a AWS Signature Version 4 to the request

Parameters:
NameTypeAttributesDescription
request$k.HttpRequest

The request to sign

accessKeystring

The access key

secretKeystring

The secret key

regionstring

The region

servicestring

The service

sessionTokenstring<optional>

Optional session token

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

The signed request

Type: 
$k.HttpRequest

(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
Since
  • 5.3.2
Returns:

The hash object

Type: 
$k.Hash