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 d7c212a commit 19d6267Copy full SHA for 19d6267
utils/SpeedEncryptTest.cs
@@ -0,0 +1,22 @@
1
+using System;
2
+using System.Security.Cryptography;
3
+
4
+public class Class1
5
+{
6
+ public Class1()
7
+ {
8
+ }
9
10
+ public static void main()
11
12
+ var rng = new RNGCryptoServiceProvider();
13
+ byte[] salt = new byte[16];
14
+ salt = rng.GetBytes(salt);
15
+ var watch = System.Diagnostics.Stopwatch.StartNew();
16
+ var hasher = new Rfc2898DeriveBytes("HelloWorld12345", salt, 10000);
17
+ watch.Stop();
18
+ var elapsedMs = watch.ElapsedMilliseconds;
19
+ Console.WriteLine(elapsedMs);
20
21
22
+}
0 commit comments