mirror of
https://github.com/JustArchiNET/ArchiSteamFarm
synced 2024-11-10 07:04:27 +00:00
Misc
This commit is contained in:
parent
c0da86e4ca
commit
efdc3eb7bb
1 changed files with 3 additions and 1 deletions
|
@ -243,7 +243,9 @@ public static class ArchiCryptoHelper {
|
|||
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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue