コード例 #1
0
 private InitInformationManager(string file, string key, string iv)
 {
     if (File.Exists(file))
     {
         SimpleDES.Decrypt(OpenFile(file), key, iv);
     }
     else
     {
         throw new FileNotFoundException();
     }
 }
コード例 #2
0
        private Tuple <string, string> ChangeField(string field, string data)
        {
            SimpleDES simDes = new SimpleDES(Utilities.KeyDES);

            string[] splitValue = field.Split("Encrypt");
            if (splitValue.Length > 1)
            {
                return(new Tuple <string, string>(splitValue[1], simDes.DecryptAnyData(data)));;
            }

            return(new Tuple <string, string>(field, data));
        }