UNPKG

@esm-pack/bcrypt

Version:

bcrypt esm package build from bcrypt-ts

10 lines (9 loc) 382 B
/** * Internally crypts a string. * * @param bytes Bytes to crypt * @param salt Salt bytes to use * @param rounds Number of rounds * @param progressCallback Callback called with the current progress */ export declare const crypt: (bytes: number[], salt: number[], rounds: number, sync: boolean, progressCallback?: (progress: number) => void) => Promise<number[]> | number[];