Skip to content

Commit

Permalink
Misc
Browse files Browse the repository at this point in the history
  • Loading branch information
JustArchi committed Sep 4, 2024
1 parent c0da86e commit efdc3eb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ArchiSteamFarm/Helpers/ArchiCryptoHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<byte> iv = stackalloc byte[16];
RandomNumberGenerator.Fill(iv);

using Aes aes = Aes.Create();

Expand Down

0 comments on commit efdc3eb

Please sign in to comment.