Beispiel #1
0
        private void btnDec_Click(object sender, EventArgs e)
        {
            try
            {
                ScpApiLib.ScpApi lib = new ScpApiLib.ScpApi();

                txtDec.Text = lib.Decrypt(txtPath.Text, txtKey.Text, txtEnc.Text);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
Beispiel #2
0
        public string Decrypt(string sPath, string sKey, string sText)
        {
            string sReturn = "";

            try
            {
                ScpApiLib.ScpApi lib = new ScpApiLib.ScpApi();
                sReturn = lib.Decrypt(sPath, sKey, sText);
            }
            catch (Exception) { }

            return(sReturn);
        }