C# Класс dlech.SshAgentLib.WinForms.SecureEdit

Secure edit control class. Supports storing passwords in an encrypted form in the process memory.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Attach ( TextBox tbPasswordBox, EventHandler evTextChanged, bool bHidePassword ) : void

Associate the current secure edit object with a text box.

ContentsEqualTo ( SecureEdit secOther ) : bool
Detach ( ) : void

Remove the current association. You should call this before the text box is destroyed.

EnableProtection ( bool bEnable ) : void
SetPassword ( byte pbUtf8 ) : void
ToUtf8 ( ) : byte[]

Приватные методы

Метод Описание
GetAsString ( ) : string
OnDragCheck ( object sender, DragEventArgs e ) : void
OnDragDrop ( object sender, DragEventArgs e ) : void
OnGotFocus ( object sender, EventArgs e ) : void
OnPasswordTextChanged ( object sender, EventArgs e ) : void
RemoveInsert ( int nLeftRem, int nRightRem, string strInsert ) : void
SecureEdit ( ) : System
ShowCurrentPassword ( int nSelStart, int nSelLength ) : void

Описание методов

Attach() публичный Метод

Associate the current secure edit object with a text box.
public Attach ( TextBox tbPasswordBox, EventHandler evTextChanged, bool bHidePassword ) : void
tbPasswordBox System.Windows.Forms.TextBox Text box to link to.
evTextChanged EventHandler
bHidePassword bool Initial protection flag.
Результат void

ContentsEqualTo() публичный Метод

public ContentsEqualTo ( SecureEdit secOther ) : bool
secOther SecureEdit
Результат bool

Detach() публичный Метод

Remove the current association. You should call this before the text box is destroyed.
public Detach ( ) : void
Результат void

EnableProtection() публичный Метод

public EnableProtection ( bool bEnable ) : void
bEnable bool
Результат void

SetPassword() публичный Метод

public SetPassword ( byte pbUtf8 ) : void
pbUtf8 byte
Результат void

ToUtf8() публичный Метод

public ToUtf8 ( ) : byte[]
Результат byte[]