parent
a16d5160d4
commit
b080d319af
3 changed files with 32 additions and 17 deletions
@ -0,0 +1,15 @@ |
|||||||
|
type EncryptParams = SubroutineCommonParams & { |
||||||
|
algorithm?: string; |
||||||
|
hash_count?: string; |
||||||
|
password: string; |
||||||
|
salt?: string; |
||||||
|
}; |
||||||
|
|
||||||
|
type Encrypted = { |
||||||
|
user_algorithm: string; |
||||||
|
user_hash_count: number; |
||||||
|
user_password_hash: string; |
||||||
|
user_salt: string; |
||||||
|
}; |
||||||
|
|
||||||
|
type EncryptFunction = (params: EncryptParams) => Promise<Encrypted>; |
Loading…
Reference in new issue