diff --git a/ArchiSteamFarm/Helpers/ArchiCryptoHelper.cs b/ArchiSteamFarm/Helpers/ArchiCryptoHelper.cs index 1a528757be9aa..3bef690d1ddfe 100644 --- a/ArchiSteamFarm/Helpers/ArchiCryptoHelper.cs +++ b/ArchiSteamFarm/Helpers/ArchiCryptoHelper.cs @@ -243,7 +243,9 @@ internal static bool VerifyHash(EHashingMethod hashingMethod, string text, strin try { byte[] key = SHA256.HashData(EncryptionKey); byte[] textData = Encoding.UTF8.GetBytes(text); - byte[] iv = RandomNumberGenerator.GetBytes(16); + + Span iv = stackalloc byte[16]; + RandomNumberGenerator.Fill(iv); using Aes aes = Aes.Create();