Beispiel #1
0
        public bool VerifyLicense(string xmlLicFile)
        {
            string      publicKey = new SteganoUtils().ExtractKeyFromBitmaps();
            XmlDocument xmlLic    = new XmlDocument();

            xmlLic.Load(xmlLicFile);
            return(VerifyLicense(publicKey, xmlLic));
        }
Beispiel #2
0
        public PragmaLicense FromEncryptedXml(string enLicenceXml)
        {
            SteganoUtils su = new SteganoUtils();

            string licXml = Decrypt(enLicenceXml, PKey);

            return(this.FromXmlString(licXml));
        }
Beispiel #3
0
        public string SteganoDecrypt(string cipherText)
        {
            string pwd = new SteganoUtils().ExtractKeyFromBitmaps();

            return(Decrypt(cipherText, pwd));
        }
Beispiel #4
0
        public string SteganoEncrypt(string clearText)
        {
            string pwd = new SteganoUtils().ExtractKeyFromBitmaps();

            return(Encrypt(clearText, pwd));
        }