How to use the @waves/marshall.serializePrimitives.STRING function in @waves/marshall

To help you get started, we’ve selected a few @waves/marshall examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github wavesplatform / waves-transactions / src / seedUtils / index.ts View on Github external
export function strengthenPassword(password: string, rounds: number = 5000): string {
  while (rounds--) {
    const bytes = serializePrimitives.STRING(password)
    password = base16Encode(sha256(bytes))
  }
  return password
}