crypto-js#PBKDF2 TypeScript Examples
The following examples show how to use
crypto-js#PBKDF2.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: crypto.service.ts From xBull-Wallet with GNU Affero General Public License v3.0 | 5 votes |
hashPassword(password: string): string {
return PBKDF2(password, 'WHAT_A_NICE_SALT').toString();
}
Example #2
Source File: password-encoder.ts From malagu with MIT License | 5 votes |
protected doEncode(rawPassword: string, salt: string): string {
const { secret } = this.options;
return salt + PBKDF2(rawPassword, salt + secret, this.options).toString();
}