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 881965e commit b6ec971Copy full SHA for b6ec971
SQLite.CodeFirst/Internal/Utility/HashCreator.cs
@@ -1,15 +1,22 @@
1
using System;
2
+using System.Diagnostics;
3
using System.Security.Cryptography;
4
using System.Text;
5
+using System.Threading;
6
7
namespace SQLite.CodeFirst.Utility
8
{
9
internal static class HashCreator
10
11
public static string CreateHash(string data)
12
13
+ while (!Debugger.IsAttached)
14
+ {
15
+ Thread.Sleep(100);
16
+ }
17
+
18
byte[] dataBytes = Encoding.ASCII.GetBytes(data);
- using (SHA512 sha512 = new SHA512CryptoServiceProvider())
19
+ using (SHA512 sha512 = SHA512.Create())
20
21
byte[] hashBytes = sha512.ComputeHash(dataBytes);
22
string hash = Convert.ToBase64String(hashBytes);
0 commit comments