2 // ProtectedData.cs: Protect (encrypt) data without (user involved) key management
5 // Sebastien Pouliot (spouliot@motus.com)
7 // (C) 2003 Motus Technologies Inc. (http://www.motus.com)
14 namespace System.Security.Cryptography {
17 // a. Windows Data Protection
18 // http://msdn.microsoft.com/library/en-us/dnsecure/html/windataprotection-dpapi.asp?frame=true
20 public sealed class ProtectedData {
22 // FIXME: interop could be important under windows - if one application protect some data using
23 // mono and another one unprotects it using ms.net
25 [MonoTODO ("interop with MS implementation ?")]
26 public static byte[] Protect (byte[] userData, byte[] optionalEntropy, DataProtectionScope scope)
29 throw new ArgumentNullException ("userData");
31 // on Windows this is supported only under 2000 and later OS
32 throw new PlatformNotSupportedException ();
35 [MonoTODO ("interop with MS implementation ?")]
36 public static byte[] Unprotect (byte[] encryptedData, byte[] optionalEntropy, DataProtectionScope scope)
38 if (encryptedData == null)
39 throw new ArgumentNullException ("encryptedData");
41 // on Windows this is supported only under 2000 and later OS
42 throw new PlatformNotSupportedException ();