On Monday 30 July 2007 18:59:46 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. Ideally I'd build the
It has all Python modules at its "hand". :-) > encryption/decryption into my SO model but don't know if there are any > encryption functions included in TG or not. I am currently using the There are some, yes. On your identity provider. > identity encryption to encrypt my passwords in my db, but in this case > would need to be able to decrypt an encrypted string as well. I've done Then you can't use any hash function. Those are what TG have. You'll have to use a different module and different code. > some googling and see that pycrypt seems to be a regularly used python > tool for encryption. Before I go the route of importing that into my > model and putting in the required code, I thought I run it by the TG > list and see if people would recommend implementing this in a different > way. I dunno what pycrypt offers on this area... What algorithms do you have in mind? -- Jorge Godoy <[EMAIL PROTECTED]> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

