Esempio n. 1
0
        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);
            }
        }
Esempio n. 2
0
 public static byte[] FromBase64String(string data)
 {
     return(Default.FromBase(data));
 }
Esempio n. 3
0
 public static byte[] Base64Decode(string data)
 {
     return(Default.FromBase(data));
 }
 public void Exyll()
 {
     _ = _exyll.FromBase(_encoded);
 }