private void Decrypt(BigInteger d, BigInteger n, string inputpath, string outputpath, bool b64enabled) { string decryptedmessage = ""; byte[] bytes; List <string> encryptedmessage = new List <string>(); encryptedmessage = ReadText(inputpath); decryptedmessage = RSACore.Decrypt(encryptedmessage, d, n); if (b64enabled) { bytes = b64.FromBase(decryptedmessage); WriteBytes(outputpath, bytes); } else { decryptedmessage = RSACore.Decrypt(encryptedmessage, d, n); WriteText(outputpath, decryptedmessage); } }
public static byte[] FromBase64String(string data) { return(Default.FromBase(data)); }
public static byte[] Base64Decode(string data) { return(Default.FromBase(data)); }
public void Exyll() { _ = _exyll.FromBase(_encoded); }