randomSalt static method

Uint8List randomSalt()

Generates a random salt for use in password hashing.

Implementation

static Uint8List randomSalt() =>
    Sodium.randombytesBuf(Sodium.cryptoPwhashSaltbytes);