private string decryptKeystore() { if (string.IsNullOrEmpty(KeystorePath.Trim()) || string.IsNullOrEmpty(RSAPath.Trim())) { return(""); } BigDecoder bigdecoder = new BigDecoder(); return(bigdecoder.Decrypt(RSAPath, KeystorePath)); }
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); }