public bool VerifyLicense(string xmlLicFile) { string publicKey = new SteganoUtils().ExtractKeyFromBitmaps(); XmlDocument xmlLic = new XmlDocument(); xmlLic.Load(xmlLicFile); return(VerifyLicense(publicKey, xmlLic)); }
public PragmaLicense FromEncryptedXml(string enLicenceXml) { SteganoUtils su = new SteganoUtils(); string licXml = Decrypt(enLicenceXml, PKey); return(this.FromXmlString(licXml)); }
public string SteganoDecrypt(string cipherText) { string pwd = new SteganoUtils().ExtractKeyFromBitmaps(); return(Decrypt(cipherText, pwd)); }
public string SteganoEncrypt(string clearText) { string pwd = new SteganoUtils().ExtractKeyFromBitmaps(); return(Encrypt(clearText, pwd)); }