/// <summary> /// A static "ShowDialog" that gets the password as a protected string /// </summary> /// <returns>Entered password as a protected string</returns> public static byte[] FetchProtectedPassword() { EnterPassDialog ed = new EnterPassDialog(); ed.ShowDialog(); return ed.ProtectedValue; }
/// <summary> /// A static "ShowDialog" that gets the password as a secure string /// </summary> /// <returns>Entered password as a secure string</returns> public static System.Security.SecureString FetchPassword() { EnterPassDialog ed = new EnterPassDialog(); ed.ShowDialog(); return ed.Value; }