Changeset 7691
- Timestamp:
- 04/02/12 19:59:51 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Clients.Common/3.3/CryptoService.cs
r7690 r7691 32 32 private static byte[] entropy = System.Text.Encoding.Unicode.GetBytes("Salt Is Not A Password"); 33 33 34 public static string EncryptString( String input) {34 public static string EncryptString(string input) { 35 35 byte[] encryptedData = ProtectedData.Protect( 36 36 Encoding.Unicode.GetBytes(input), … … 40 40 } 41 41 42 public static String DecryptString(string encryptedData) {42 public static string DecryptString(string encryptedData) { 43 43 try { 44 44 byte[] decryptedData = System.Security.Cryptography.ProtectedData.Unprotect(
Note: See TracChangeset
for help on using the changeset viewer.