Skip to main content
Version: 3.x

Create Safe Random Data

In the following section, you will see a diagram of the cryptographic operations performed when calling the method createSafeRandomData

This method generate a cryptographically secure random bytes of the desired lengths using HKDF with sha3-256 digest algorithm using the following params:

  • Generate a random key using the secure random bytes' generator.
  • Generate a salt using the secure random bytes' generator.