generateRandomSalt function Null safety

String generateRandomSalt(
  1. {int hashLength = 32}
)

A utility method to generate a random base64 salt.

Implementation

String generateRandomSalt({int hashLength = 32}) {
  return generateAsBase64String(hashLength);
}