UNPKG

@esm-pack/bcrypt

Version:

bcrypt esm package build from bcrypt-ts

15 lines (14 loc) 553 B
/** * Encodes a byte array to base64 with up to length bytes of input, using the custom bcrypt alphabet. * * @param byteArray Byte array * @param length Maximum input length */ export declare const encodeBase64: (byteArray: number[] | Buffer, length: number) => string; /** * Decodes a base64 encoded string to up to len bytes of output, using the custom bcrypt alphabet. * * @param contentString String to decode * @param length Maximum output length */ export declare const decodeBase64: (contentString: string, length: number) => number[];