otplib-utils/padSecret

Padding of secret to a certain buffer size.

Source:
Parameters:
Name Type Description
secretBuffer Buffer

a buffer representation of your secret.

size number

number of bytes your secret should be.

encoding string

the encoding of secret

Returns:
Type:
Buffer