Hi dude, What type of hash data is this? i received some data when downloading with AES i also have the ecryption of other AES passwords. And some i am able to decode. But this hash "AqsV7IS.cokpwC-FIhR6j8CDjtvbz4jTUqowvzQBItcf2F.483tGFbpZi7F8O5SL " is not decodable. After writing the code it tells that it isnt base 64.
My decoder function;
My decoder function;
Code
//tBdP4zp5Ft8hXzwNqTGK3Po0aH7A0qexuCWqg9c0YUTlQpB2jWzpt9o8ngeWpgOa (decrypt hash)
//AqsV7IS.cokpwC-FIhR6j8CDjtvbz4jTUqowvzQBItcf2F.483tGFbpZi7F8O5SL (not base64 error) --> hash type??
static public string decode(string value)
{
string encode_value = value;
string EncryptionKey = "84F216D4-C043-4A3A-945E-E9ACD47CE8B9" +
"511BCCA7-334E-4265-8691-BAD1E3562568" +
"2A0FEE29-D20C-4E2F-9F3C-7A16C1BA4C9D";
char[] _base64Padding = { '=' };
byte[] _salt = new byte[48];
try
{
var rijndaelCipher = new RijndaelManaged();
var encryptedData = Convert.FromBase64String(encode_value );
var secretKey = new Rfc2898DeriveBytes(EncryptionKey, _salt);
using (var decryptor = rijndaelCipher.CreateDecryptor(secretKey.GetBytes(32), secretKey.GetBytes(16)))
{
using (var memoryStream = new MemoryStream(encryptedData))
{
using (var cryptoStream = new CryptoStream(memoryStream, decryptor, CryptoStreamMode.Read))
{
var plainText = new byte[encryptedData.Length];
var decryptedCount = cryptoStream.Read(plainText, 0, plainText.Length);
string DecodeKey = Encoding.Unicode.GetString(plainText, 0, decryptedCount);
return DecodeKey;
}
}
}
}
catch (Exception e )
{
return e.Message;
}
}
