CmisSync.Lib.Config.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>
 /// Initializes a new instance of the <see cref="Password"/> class with the given password.
 /// </summary>
 /// <param name="password">as plain text</param>
 public Password(string password)
 {
     this.password = Crypto.Obfuscate(password);
 }