public static string Obfuscate(string value) { if (Environment.OSVersion.Platform == PlatformID.Win32NT) { return WindowsObfuscate(value); } else { return UnixObfuscate(value); } }
/// <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); }