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. UnicodeEncoding encoding = new UnicodeEncoding(); hashBytes = encoding.GetBytes(password.ToUpper().Trim()); SHA1 sha1 = new SHA1CryptoServiceProvider(); byte[] cryptPassword = sha1.ComputeHash(hashBytes); String pwd= 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 --- _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/02b301c9d00e$62a48b00$8600a...@w2k3s02 ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

