nautilus.auth.models.fields package¶
Submodules¶
nautilus.auth.models.fields.password module¶
-
class
nautilus.auth.models.fields.password.PasswordField(rounds=12, **kwds)[source]¶ Bases:
peewee.FieldThis field allows for safe storage of passwords in a database while supporting easy validation.
Parameters: rounds (int, default=12) – The number of layers of encryption to be performed on the hash. This value is upgradeable and can be increased at any time. The next time the value is updated, it will be saved with the increased encryption. Example
TODO: add example of equality test
-
db_field= 'varchar'¶
-