[web2py] Password feild type seems to save in plain text for me.

2014-03-18 Thread Encompass solutions
I am trying to create a model with an encrypted key so it's harder for someone to maliciously screw over my customers. I have the following snippet. Field('public_gram', 'boolean', default=False), Field('tag_name', 'list:string'), Field('deletion_key', 'password') ) You can see the

Re: [web2py] Password feild type seems to save in plain text for me.

2014-03-18 Thread Marin Pranjić
How did you insert "test" into database? If you use db.tablename.insert(..., deletion_key='test') it will store it plain text because you are bypassing validators. You should: 1. use .validate_and_insert(...) instead or 2. use .insert(deletion_key=db.tablename.deletion_key.validate('test')) If