Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function strengthenPassword(password: string, rounds: number = 5000): string {
while (rounds--) {
const bytes = serializePrimitives.STRING(password)
password = base16Encode(sha256(bytes))
}
return password
}