Home Reference Source
public class | source

WebDollarCrypto

Static Method Summary

Static Public Methods
public static

MD5(bytes: *): *

public static

MD512(bytes: *): *

public static

RIPEMD160(bytes: *): *

public static

SHA256(bytes: *): *

public static

bytesToHex(bytes: *): *

public static

decodeBase64(str: *): Buffer

public static

decryptAES(buffer: *, password: *): *

public static

encodeBase64(bytes: *): *

public static

encryptAES(buffer: *, password: *): *

public static

getBufferRandomValues(count: *): *

public static

hashPOW(data: *, buffer: *): Promise<Buffer>

Hashing using Argon2

public static

Hashing using Argon2

public static

isHex(h: *): *

public static

verifyHashPOW(hash: *, data: *): *

Verify the Hash using Argon2

Static Public Methods

public static MD5(bytes: *): * source

Params:

NameTypeAttributeDescription
bytes *

Return:

*

public static MD512(bytes: *): * source

Params:

NameTypeAttributeDescription
bytes *

Return:

*

public static RIPEMD160(bytes: *): * source

Params:

NameTypeAttributeDescription
bytes *

Return:

*

public static SHA256(bytes: *): * source

Params:

NameTypeAttributeDescription
bytes *

Return:

*

public static bytesToHex(bytes: *): * source

Params:

NameTypeAttributeDescription
bytes *

Return:

*

public static decodeBase64(str: *): Buffer source

Params:

NameTypeAttributeDescription
str *

Return:

Buffer

public static decryptAES(buffer: *, password: *): * source

Params:

NameTypeAttributeDescription
buffer *
password *

Return:

*

public static encodeBase64(bytes: *): * source

Params:

NameTypeAttributeDescription
bytes *

return string

Return:

*

public static encryptAES(buffer: *, password: *): * source

Params:

NameTypeAttributeDescription
buffer *
password *

Return:

*

public static getBufferRandomValues(count: *): * source

Params:

NameTypeAttributeDescription
count *

Return:

*

public static hashPOW(data: *, buffer: *): Promise<Buffer> source

Hashing using Argon2

Params:

NameTypeAttributeDescription
data *
buffer *

Return:

Promise<Buffer>

public static hashPOW_String(data: *): Promise<String> source

Hashing using Argon2

Params:

NameTypeAttributeDescription
data *

Return:

Promise<String>

public static isHex(h: *): * source

Params:

NameTypeAttributeDescription
h *

Return:

*

public static verifyHashPOW(hash: *, data: *): * source

Verify the Hash using Argon2

Params:

NameTypeAttributeDescription
hash *
data *

Return:

*