I need to create some simple form that will be use to registration a user.
The form include 2 fields
1. User name
2. Password.
So, i decide to create a class that derivative from ChildWindow.
I created also a class call ‘UserInstance’ that have 2 fields
name, password.
The question that i have
-
To make the application more secure – i don’t want to make the field ‘password’ to be sting in the class instance ( security reason ) – is there some alternative ?
-
I using the object ‘system.windows.controls.PasswordBox’ in the silverlight GUI – how can i make the binding between the PasswordBox and the Password object in the class instance ?
Thanks for any help.
regarding the binding. You can use it in the same way as for a TextBox.
MyProperty is a property of the DataContext of the PasswordBox.
Unfortunately there is nothing like SecureString in SL. You have to encrypt it by your self. Have a look here(Cryptographic Services in Silverlight) or here(MD5) or here(SHA256Managed).
Hope this helps!
BR,
TJ