[DiscordArchive] do anyone have a idea?
[DiscordArchive] do anyone have a idea?
Archived author: Flying Phoenix • Posted: 2022-07-18T18:46:27.276000+00:00
Original source
do anyone have a idea?
Archived author: Flying Phoenix • Posted: 2022-07-18T18:58:11.803000+00:00
Original source
``` using (SHA256 sha256Hash = SHA256.Create())
{
string Emailhash = GetHash(sha256Hash, email);
string Passwordhash = GetHash(sha256Hash, Emailhash+":"+password);
return Passwordhash.ToUpper();
}
}
private static string GetHash(HashAlgorithm hashAlgorithm, string input)
{
// Convert the input string to a byte array and compute the hash.
byte[] data = hashAlgorithm.ComputeHash(Encoding.UTF8.GetBytes(input));
// Create a new Stringbuilder to collect the bytes
// and create a string.
var sBuilder = new StringBuilder();
// Loop through each byte of the hashed data
// and format each one as a hexadecimal string.
for (int i = 0; i < data.Length; i++)
{
sBuilder.Append(data[i].ToString("x2").ToUpper());
}
// Return the hexadecimal string.
return sBuilder```
Archived author: Flying Phoenix • Posted: 2022-07-18T18:58:30.595000+00:00
Original source
thats what i have it now
Archived author: Flying Phoenix • Posted: 2022-07-18T18:59:24.949000+00:00
Original source
and i get
``` ADE9F7DFD71F9A4419509B589BA5379CF45038AF9066FA5940C5007D91D07CAC```
but i need
``` 90CAAF25FAA4952E68BBB377C9A98CAB0D78AE77FA8D3BBF3A2239558B045CCD```
Archived author: Tea • Posted: 2022-07-18T18:59:51.912000+00:00
Original source
try reversing the byte array you get from ComputeHash
Archived author: Tea • Posted: 2022-07-18T19:00:02.364000+00:00
Original source
openssl does weird things
Archived author: Flying Phoenix • Posted: 2022-07-18T19:03:45.768000+00:00
Original source
to email and pass ?
Archived author: Flying Phoenix • Posted: 2022-07-18T19:04:16.498000+00:00
Original source
like normal text again?
Archived author: Flying Phoenix • Posted: 2022-07-18T19:29:37.362000+00:00
Original source
<@200677690838220800> Its works now, tnx