Availability |
Odoo Online
Odoo.sh
On Premise
|
Lines of code | 101 |
Technical Name |
generic_crypto_utils |
License | LGPL-3 |
Website | https://crnd.pro |
Versions | 14.0 12.0 15.0 16.0 13.0 |
Generic Crypto Utils
Generic Crypto Utils is technical addon developed by the Center of Research & Development company.
The goal of this addon is to provide generic utilities to add encryption to other addons. Currently it implements generic.crypto.param model, wich works same as ir.config_parameter but values stored are encrypted.
It is required to place encryption key in odoo configuration file (odoo.conf). To do this, add following line to config file: crypto_token = <key>
Run following command to generate new key: python -c "from cryptography.fernet import Fernet; print(Fernet.generate_key())"
This module allows you to easily encrypt fields in res.config.settings. To do this, all you need is to set attribute config_param=param_name to such field, and this field will be encrypted. For example:
class ResConfigSettings(models.TransientModel): _inherit = 'res.config.settings' my_secret_field = fields.Char(crypto_param='my.secret')
After this, you can access this param inside your python code like this:
secret = self.env['generic.crypto.param'].get_param('my.secret')
Launch your own ITSM system in 60 seconds:
Create your own Bureaucrat ITSM database
Bug Tracker
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported.
Maintainer
Our web site: https://crnd.pro/
This module is maintained by the Center of Research & Development company.
We can provide you further Odoo Support, Odoo implementation, Odoo customization, Odoo 3rd Party development and integration software, consulting services. Our main goal is to provide the best quality product for you.
For any questions contact us.
Please log in to comment on this module