CmisSync.Auth.Crypto.Obfuscate C# (CSharp) Method

Obfuscate() public static method

Obfuscate a string.
public static Obfuscate ( string value ) : string
value string The string to obfuscate
return string
        public static string Obfuscate(string value)
        {
            if (Environment.OSVersion.Platform == PlatformID.Win32NT)
            {
                return WindowsObfuscate(value);
            }
            else
            {
                return UnixObfuscate(value);
            }
        }

Usage Example

Exemplo n.º 1
0
 /// <summary>
 /// Constructor initializing the instance with the given password
 /// </summary>
 /// <param name="password">as plain text</param>
 public Password(string password)
 {
     this.password = Crypto.Obfuscate(password);
 }