Author: KAM.covad
Posted: 2009-05-08 at 14:54:10
I need to encode a password:
1. convert to upper case (yes, I know how to do this)
2. Unicode it in little endian UTF16
3. SHA1 it
4. base64 encode it
Here is an example I was given, but I have never used those methods and =
I do not believe they are in VFP
The encoding process for password is: first convert to uppercase, then =
Unicode it in littleendian
UTF16,
then SHA1 it,
then base64 encode it.=20
UnicodeEncoding encoding =3D new UnicodeEncoding();
hashBytes =3D encoding.GetBytes(password.ToUpper().Trim());
SHA1 sha1 =3D new SHA1CryptoServiceProvider();
byte[] cryptPassword =3D sha1.ComputeHash(hashBytes);
String pwd=3D Convert.ToBase64String(cryptPassword);
Anyone know where to start looking? I searched google but could not find =
anything that could easily be converted to vfp code.
--- StripMime Report -- processed MIME parts ---
multipart/alternative
text/plain (text body -- kept)
text/html
---