SIGN UP

Crypto

Methods(4)

Methods

hmac_sha256

hmac_sha256(key_string: String, data_string: String): String

Calculates HMAC-SHA256 hash of the specified data.

Parameters

  • key_string:

    String

    Key for calculation purposes

  • data_string:

    String

    String to calculate hash of

Returns

  • Return:

    String

md5

md5(data: String|Array): String

Calculates MD5 hash. Can be used with HTTP requests that require hash.

Parameters

  • data:

    String|Array

    String to calculate hash of

Returns

  • Return:

    String

sha1

sha1(data: String): String

Calculates SHA1 hash. Can be used with HTTP requests that require hash.

Parameters

  • data:

    String

    String to calculate hash of

Returns

  • Return:

    String

sha256

sha256(data: String): String

Calculates SHA256 hash of the specified data.

Parameters

  • data:

    String

    String to calculate hash of

Returns

  • Return:

    String