-
-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathbinding.d.ts
15 lines (9 loc) · 905 Bytes
/
binding.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* auto-generated by NAPI-RS */
/* eslint-disable */
export const DEFAULT_COST: number
export declare function genSalt(round: number, version?: '2a' | '2x' | '2y' | '2b', signal?: AbortSignal): Promise<string>
export declare function genSaltSync(round: number, version?: '2a' | '2x' | '2y' | '2b'): string
export declare function hash(input: Uint8Array | string, cost?: number | undefined | null, salt?: string | Uint8Array | undefined | null, signal?: AbortSignal | undefined | null): Promise<string>
export declare function hashSync(input: string | Uint8Array, cost?: number | undefined | null, salt?: string | Uint8Array | undefined | null): string
export declare function verify(password: Uint8Array | string, hash: Uint8Array | string, signal?: AbortSignal | undefined | null): Promise<boolean>
export declare function verifySync(input: string | Uint8Array, hash: string | Uint8Array): boolean