Branch: Tag:

2016-03-14

2016-03-14 16:15:06 by Martin Nilsson <nilsson@fastmail.com>

Use random_string instead of Crypto.Random.random_string

352:       // NB: The salt must be printable.    string(7bit) salt = -  MIME.encode_base64(Crypto.Random.random_string(salt_size))[..salt_size-1]; +  MIME.encode_base64(random_string(salt_size))[..salt_size-1];       string(8bit) hash = crypt_hash(password, salt, rounds);       return render_hash([string(7bit)]scheme, salt, hash, rounds);   }