Example #1
0
        private string decryptKeystore()
        {
            if (string.IsNullOrEmpty(KeystorePath.Trim()) || string.IsNullOrEmpty(RSAPath.Trim()))
            {
                return("");
            }
            BigDecoder bigdecoder = new BigDecoder();

            return(bigdecoder.Decrypt(RSAPath, KeystorePath));
        }
Example #2
0
        private string decryptPassword()
        {
            if (string.IsNullOrEmpty(PassPath.Trim()) || string.IsNullOrEmpty(RSAPath.Trim()))
            {
                return("");
            }
            System.Diagnostics.Debug.WriteLine("PassPath  " + PassPath);
            BigDecoder bigdecoder = new BigDecoder();

            System.Diagnostics.Debug.WriteLine("RSAPath  " + RSAPath);
            System.Diagnostics.Debug.WriteLine("PassPath  " + PassPath);
            string KeyFilePath = bigdecoder.Decrypt(RSAPath, PassPath);

            System.Diagnostics.Debug.WriteLine("KeyFilePath  " + KeyFilePath);
            string decryptKey = File.ReadAllText(KeyFilePath);

            return(decryptKey);
        }