generateRandomSalt static method

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

A utility method to generate a random base64 salt.

Implementation

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