zippie-utils/utility

Methods

(inner) aes128cbcDecrypt(ciphertext, key, iv) → {Buffer}

Decrypt Ciphertext with Key and IV

Parameters:
Name Type Description
ciphertext BinaryLike
key CipherKey
iv BinaryLike
Source:

(inner) aes128cbcEncrypt(plaintext, key, iv) → {Buffer}

Encrypt Plaintext with Key and IV

Parameters:
Name Type Description
plaintext BinaryLike

data to encrypt

key CipherKey

Private key

iv BinaryLike

Initialisation Vector

Source:

(inner) bs58KeyIvDecode(keyiv) → {Object}

Decodes base58 string into Key and IV

Parameters:
Name Type Description
keyiv String
Source:

(inner) bs58KeyIvEncode(key, iv) → {String}

Encodes Key and IV into a base58 string

Parameters:
Name Type Description
key Buffer
iv Buffer
Source:

(inner) randomKey(size) → {Buffer}

Get a Cryptographically secure random number of byte length size

Parameters:
Name Type Description
size Number
Source: