By Ger Cannoll - 2/13/2013
I have a small form (not based on Strataframe Form) and I have a Password that I want to Hash Similar to the way the SF User password is encrypted.
Is it possible to Hash it (and Unhash it later ) by calling a SF Method . Some code (c#) would be helpful
|
By Ivan George Borges - 2/13/2013
Hi Ger.
Have a look at this sample:
http://forum.strataframe.net/FindPost27177.aspx
|
By Ger Cannoll - 2/15/2013
Hi Ivan. Thanks for that
Dim encryptedContents()As Byte =loEncrypt.Encrypt(contents)
....seems to be the line I am looking for
I though that a Seed was required ...... how does this line know what the seed is ?
|
By StrataFrame Team - 2/15/2013
We use the MicroFour.StrataFrame.Security.SecurityBasics.SecurityKey and .SecurityKeyVector properties to allow you to specify the key and vector for the CryptoTransform we use. They are both a byte array and you can set them to anything or use the .GetSecurityKey() and .GetSecurityKeyVector() methods to generate ones for you from a given string. In those methods, we just hash your given key and choose a certain set of bytes from the hash for the key and vector.
|
By Ger Cannoll - 2/16/2013
HI Ben
Thanks
|