"MB Software Solutions, LLC" <[email protected]> 
wrote:

> From Craig's vfpencryption page under the Remarks from the HASH 
>function 
>(http://www.sweetpotatosoftware.com/spsblog/2009/08/09/MajorVFPEncryptionUpdate.aspx):
>
>
>
>----------------------------------------------------------
>The hash is returned as a series of binary characters. However, it is 
>more common to see hashes in a hexBinary format. This can be 
>accomplished in Visual FoxPro by taking the return of the Hash() 
>function and sending it in as a parameter to the STRCONV() function.
>For 
>example:
>
>?STRCONV(Hash("Some String"), 15) && hexBinary Hash
>----------------------------------------------------------
>
>
>I guess I'm wondering why not just store the HASH value returned?  It's
>
>all cryptic anyway.  I mean, if you're using this to save passwords, 
>what's the difference how you store it?  You're still comparing the 
>person's entered password HASHed against what's stored in the database,
>
>right?
>
>-- 
>Mike Babcock, MCP
>MB Software Solutions, LLC
>President, Chief Software Architect
>http://mbsoftwaresolutions.com
>http://fabmate.com
>http://twitter.com/mbabcock16
>

If I remember correctly, that function returns the string with some chr(0) on 
the end.
The strconv() will shorten the text. Otherwise, I don't see a difference.
-- 
Tracy Pearson
PowerChurch Software
Sent with K-9 Mail.

_______________________________________________
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/[email protected]
** 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.

Reply via email to