in src/Amazon.Extensions.CognitoAuthentication/Util/CognitoDeviceHelper.cs [63:73]
public static void GenerateDeviceSaltAndVerifier(string deviceGroupKey, string deviceKey, string password)
{
byte[] deviceKeyHash = GetDeviceKeyHash(deviceGroupKey, deviceKey, password);
Salt = new byte[16];
using (var cryptoRandom = RandomNumberGenerator.Create())
{
cryptoRandom.GetBytes(Salt);
}
Verifier = CalculateVerifier(Salt, deviceKeyHash);
}