wasSharpNET – Diff between revs 11 and 27

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 11 Rev 27
Line 79... Line 79...
79 /// <param name="separator">the separator to use between the cyphertext and the IV</param> 79 /// <param name="separator">the separator to use between the cyphertext and the IV</param>
80 /// <returns>the decrypted data</returns> 80 /// <returns>the decrypted data</returns>
81 public string wasAESDecrypt(string data, string key, string separator = ":") 81 public string wasAESDecrypt(string data, string key, string separator = ":")
82 { 82 {
83 // retrieve the salt from the data. 83 // retrieve the salt from the data.
84 var segments = new List<string>(data.Split(new[] { separator }, StringSplitOptions.None)); 84 var segments = new List<string>(data.Split(new[] {separator}, StringSplitOptions.None));
85 if (!segments.Count.Equals(2)) 85 if (!segments.Count.Equals(2))
86 throw new ArgumentException("Invalid data."); 86 throw new ArgumentException("Invalid data.");
Line 87... Line 87...
87   87  
88 string plaintext; 88 string plaintext;
Line 113... Line 113...
113 } 113 }
114 } 114 }
115 return plaintext; 115 return plaintext;
116 } 116 }
117 } 117 }
118 } 118 }
119   119