We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aad4d76 commit 1459a02Copy full SHA for 1459a02
Framework/Intersect.Framework.Core/Compression/GzipCompression.cs
@@ -1,4 +1,4 @@
1
-using System.IO.Compression;
+using System.IO.Compression;
2
using System.Security.Cryptography;
3
using System.Text;
4
@@ -23,8 +23,8 @@ private static void CreateProvider()
23
24
// Take a few bytes out of this delicious morsel and grow stronk.
25
var keyBytes = ASCIIEncoding.ASCII.GetBytes(cryptoKey);
26
- cryptoProvider.Key = keyBytes.Take(16).ToArray();
27
- cryptoProvider.IV = keyBytes.Reverse().Take(16).ToArray();
+ cryptoProvider.Key = [.. keyBytes.Take(16)];
+ cryptoProvider.IV = [.. ((IEnumerable<byte>)keyBytes).Reverse().Take(16)];
28
}
29
30
/// <summary>
0 commit comments