Availability |
Odoo Online
Odoo.sh
On Premise
|
Lines of code | 72 |
Technical Name |
field_encryption |
License | AGPL-3 |
Website | https://github.com/ShahAlamSumon/field_encryption |
Availability |
Odoo Online
Odoo.sh
On Premise
|
Lines of code | 72 |
Technical Name |
field_encryption |
License | AGPL-3 |
Website | https://github.com/ShahAlamSumon/field_encryption |
Field Encryption
Overview
With this module user can store encrypted field value in database.
So no one can see the value from database.
Multiple fields can be stored inside single Encrypted Field.
Just before storing to database, fields gets serialized, and encrypted.
On the other hand, after reading, encrypted field gets decrypted and
deserialized and values are available in each field in original form.
I this module encrypted field uses symetrical AES algorithm and .
Configuration
- This module extends odoo.fields module, so it needs to be loaded as server wide module. This can be achieved by passing
- --load="web,field_encryption"
- or by adding following line to the server config file:
- server_wide_modules = web,field_encryption
- In order to set key for encryption/decryption, add following line to server config file:
- encryption_key='YOUR_KEY'
- You can generate key with python cryptography module like this:
- from cryptography.fernet import Fernet
- Fernet.generate_key().decode()
Code Example
User need to define one additional field with 'Encrypted' type. Then need to add an attribute "encrypt='encrypted'", in the field which will be encrypted. Code as like the image.

Output

Main field value will be pass to encrypted field and it will retriv value when its need.
Please log in to comment on this module
Report comment
Any abuse of this reporting system will be penalizedEffective for data security
Very easy to encrypt. Thanks
very important apps
Thanks for this app. It is a very important app