Skip to content

utils/digest

Documentation

Overview

Classes

Digest

md5()

Calculate MD5 digest from input (text or byte array) and return result as byte array

ts
static md5(input: any): void;
ParameterTypeDescription
inputany

Returns

  • Type: void
  • Description:

md5AsNativeBytes()

Calculate MD5 digest from input (text or byte array) and return result as 16 elements java native byte array

ts
static md5AsNativeBytes(input: any): void;
ParameterTypeDescription
inputany

Returns

  • Type: void
  • Description:

md5Hex()

Calculate MD5 digest from input (text or byte array) and return result as 32 character hex string

ts
static md5Hex(input: any): string;
ParameterTypeDescription
inputany

Returns

  • Type: string
  • Description:

sha1()

Calculate SHA1 digest from input (text or byte array) and return result as 20 elements byte array

ts
static sha1(input: any): void;
ParameterTypeDescription
inputany

Returns

  • Type: void
  • Description:

sha1AsNativeBytes()

Calculate SHA1 digest from input (text or byte array) and return result as 20 elements java native byte array

ts
static sha1AsNativeBytes(input: any): void;
ParameterTypeDescription
inputany

Returns

  • Type: void
  • Description:

sha256()

Calculate SHA256 digest from input (text or byte array) and return result as 32 elements byte array

ts
static sha256(input: any): void;
ParameterTypeDescription
inputany

Returns

  • Type: void
  • Description:

sha256AsNativeBytes()

Calculate SHA256 digest from input (text or byte array) and return result as 32 elements java native byte array

ts
static sha256AsNativeBytes(input: any): void;
ParameterTypeDescription
inputany

Returns

  • Type: void
  • Description:

sha384()

Calculate SHA384 digest from input (text or byte array) and return result as 48 elements byte array

ts
static sha384(input: any): void;
ParameterTypeDescription
inputany

Returns

  • Type: void
  • Description:

sha384AsNativeBytes()

Calculate SHA384 digest from input (text or byte array) and return result as 48 elements java native byte array

ts
static sha384AsNativeBytes(input: any): void;
ParameterTypeDescription
inputany

Returns

  • Type: void
  • Description:

sha512()

Calculate SHA512 digest from input (text or byte array) and return result as 64 elements byte array

ts
static sha512(input: any): void;
ParameterTypeDescription
inputany

Returns

  • Type: void
  • Description:

sha512AsNativeBytes()

Calculate SHA512 digest from input (text or byte array) and return result as 64 elements java native byte array

ts
static sha512AsNativeBytes(input: any): any;
ParameterTypeDescription
inputany

Returns

  • Type: any
  • Description:

sha1Hex()

Calculate SHA1 digest from input (text or byte array) and return result as 40 character hex string

ts
static sha1Hex(input: any): string;
ParameterTypeDescription
inputany

Returns

  • Type: string
  • Description: