From 5d5a0e3addd206f86a10e5be127efde0453cd419 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Wed, 6 Aug 2014 22:51:09 -0400 Subject: updated nuget --- .../Security/EncryptionManager.cs | 9 --------- 1 file changed, 9 deletions(-) (limited to 'MediaBrowser.Server.Implementations/Security/EncryptionManager.cs') diff --git a/MediaBrowser.Server.Implementations/Security/EncryptionManager.cs b/MediaBrowser.Server.Implementations/Security/EncryptionManager.cs index 33818dcea..cd9b9651e 100644 --- a/MediaBrowser.Server.Implementations/Security/EncryptionManager.cs +++ b/MediaBrowser.Server.Implementations/Security/EncryptionManager.cs @@ -1,6 +1,5 @@ using MediaBrowser.Controller.Security; using System; -using System.Security.Cryptography; using System.Text; namespace MediaBrowser.Server.Implementations.Security @@ -17,11 +16,7 @@ namespace MediaBrowser.Server.Implementations.Security { if (value == null) throw new ArgumentNullException("value"); -#if __MonoCS__ return EncryptStringUniversal(value); -#endif - - return Encoding.Default.GetString(ProtectedData.Protect(Encoding.Default.GetBytes(value), null, DataProtectionScope.LocalMachine)); } /// @@ -34,11 +29,7 @@ namespace MediaBrowser.Server.Implementations.Security { if (value == null) throw new ArgumentNullException("value"); -#if __MonoCS__ return DecryptStringUniversal(value); -#endif - - return Encoding.Default.GetString(ProtectedData.Unprotect(Encoding.Default.GetBytes(value), null, DataProtectionScope.LocalMachine)); } private string EncryptStringUniversal(string value) -- cgit v1.2.3