const string KEY = "wHcnqpHNN"; // "STINGMIMI"; public static string Decode4odToken(string token) { byte[] encryptedBytes = Convert.FromBase64String(token); BlowfishEngine bf = new BlowfishEngine(); bf.Init(false, new KeyParameter(Encoding.ASCII.GetBytes(KEY))); byte[] decryptedBytes = decrypt(encryptedBytes, bf); return Encoding.ASCII.GetString(decryptedBytes); }
private string decryptPath(string path) { byte[] value = StringToBytes(path); BlowfishEngine bf = new BlowfishEngine(); byte[] key1 = new byte[7] { 107, 108, 117, 99, 122, 121, 107 }; bf.Init(true, new KeyParameter(key1)); decrypt(value, bf); return Encoding.ASCII.GetString(value); }