Example #1
0
 internal void SetPropEncrypted(string name, string value)
 {
     string encoded = string.Empty;
     MerchantTribe.Web.Cryptography.TripleDesEncryption crypto = new MerchantTribe.Web.Cryptography.TripleDesEncryption();
     encoded = crypto.Encode(value);
     SetProp(name, encoded);
 }
Example #2
0
        internal void SetPropEncrypted(string name, string value)
        {
            string encoded = string.Empty;

            MerchantTribe.Web.Cryptography.TripleDesEncryption crypto = new MerchantTribe.Web.Cryptography.TripleDesEncryption();
            encoded = crypto.Encode(value);
            SetProp(name, encoded);
        }
Example #3
0
        internal string GetPropEncrypted(string name)
        {
            StoreSetting s      = GetSetting(name);
            string       result = string.Empty;

            result = s.SettingValue;
            MerchantTribe.Web.Cryptography.TripleDesEncryption crypto = new MerchantTribe.Web.Cryptography.TripleDesEncryption();
            if (result != string.Empty)
            {
                result = crypto.Decode(result);
            }
            crypto = null;
            return(result);
        }
Example #4
0
 internal string GetPropEncrypted(string name)
 {
     StoreSetting s = GetSetting(name);
     string result = string.Empty;
     result = s.SettingValue;
     MerchantTribe.Web.Cryptography.TripleDesEncryption crypto = new MerchantTribe.Web.Cryptography.TripleDesEncryption();
     if (result != string.Empty)
     {
         result = crypto.Decode(result);
     }
     crypto = null;
     return result;
 }