I have seen people using sha package to encrypt strings (e,g
passwords). An example is shapassword =
sha.new(kw.get('password')).hexdigest(). Now I am not sure how to
decrypt the password encrypted this way but we could obviously
validate the password without decrypting. May be you guys already know
about it but just wanted to throw in my two cents.



On Jul 31, 3:30 pm, Jim Steil <[EMAIL PROTECTED]> wrote:
> Thanks Chris, I'm using MySQL.  I'm close to getting it working with
> pycrypto.  Just seem to be stuck now because the AES encryption wants my
> string lengths to be in multiples of 16, so I'm trying to find a clever
> way to do that before encrypting/decrypting.
>
>     -Jim
>
> Christoph Zwerschke wrote:
> > Jim Steil wrote:
>
> >> I'm wondering if TG has a utility that I can use to encrypt a string
> >> value that I'm storing in my database.
>
> > If you're using PostgreSQL you may consider using pgcrypto. In Oracle
> > 10g you can also set an "encrypt" attribute on any column.
>
> > -- Chris


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to