Skip to content

Instantly share code, notes, and snippets.

@clod81
Created January 22, 2024 21:33
Show Gist options
  • Save clod81/4d7dc025e27e2d583112b0e00c69ca66 to your computer and use it in GitHub Desktop.
Save clod81/4d7dc025e27e2d583112b0e00c69ca66 to your computer and use it in GitHub Desktop.
using System;
using System.Security.Cryptography;
using System.Text;
namespace Decrypt1
{
internal class Program
{
static void Main(string[] args)
{
String encrypted = "AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAAHnJUJMzxl0SsX3UmD125BgAAAAACAAAAAAADZgAAwAAAABAAAADFExkhEfZC4H/ihdggYnqdAAAAAASAAACgAAAAEAAAAOicOrdGTwNyMWmK9nGn9GAoAAAAxRrplRayrHN3DBES8AeBk3N4XxOWqwimENqsUZYVKjO9GEOcWRdj6hQAAAA36KX8GeZaKkgMKCcFOLVuZGkENA==";
byte[] encryptedText = Convert.FromBase64String(encrypted);
byte[] originalText = ProtectedData.Unprotect(encryptedText, { 1, 2, 3, 4, 5, 6}, DataProtectionScope.CurrentUser);
Console.WriteLine("{0}", Encoding.Unicode.GetString(originalText));
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment