Versions
Description
Welcome to the SecureMongoEngine! ================================= It is a library for [MongoEngine](https://github.com/MongoEngine) that you can use to encrypt certain fields of your models. Currently is in Beta Version and it only supports AES for Symmetric Encryption and SHA for hashing. Usage ------------------------ If you want to encrypt your data you only need to use the field that you need. .. code-block:: python from mongoengine import * from securemongoengine.fields import * _key = 'workingWithAES256AlgorithmKey32B' class User(Document): name = StringField(max_length=40, required=True) lastname = StringField(max_length=40, required=True) email = EmailField(required=True, unique=True) password = EncryptedStringField(key=_key,max_length=40, required=True) user = User(name='Juan',lastname='Urrego',email='js.urrego@novcat.co',password = '123456') connect('test', host='127.0.0.1') user.save() In your Mongo database you will see something like this: :: { "_id" : ObjectId("5400c7205f9370f0603c3cfa"), "name" : "Juan", "lastname" : "Urrego", "email" : "js.urrego@novcat.co", "password" : "@::::@685f0500d7b99a59c9d6c496184a65bc" }
Repository
https://github.com/juancho088/SecureMongoEngine.git
Project Slug
securemongoengine
Last Built
No builds yet
Maintainers
Badge
Tags
encryption, mongoengine, python, security
Short URLs
securemongoengine.readthedocs.io
securemongoengine.rtfd.io
Default Version
latest
'latest' Version
master