Search 1.9 billion lines of Odoo code on GitHub

generic_crypto_utils

Author: Center of Research and Development
License: LGPL-3
Branch: 16.0
Repository: crnd-inc/generic-addons
Dependencies: base
Languages: Markdown (3, 0.9%), PO File (150, 44.1%), Python (151, 44.4%), and reStructuredText (36, 10.6%)
Other branches: 11.0, 12.0, 13.0, 14.0, and 15.0
Other repositories: abdalmola-apps/generic-addons

<a name="generic-crypto-utils"></a> <h2>Generic Crypto Utils</h2> <p><a class="reference external" href="https://github.com/crnd-inc/generic-addons"><img alt="badge1" src="https://img.shields.io/badge/pipeline-pass-brightgreen.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/license-LGPL--3-blue.png" /></a> <a class="reference external" href="https://crnd.pro/"><img alt="badge5" src="https://img.shields.io/badge/maintainer-CR&amp;D-purple.png" /></a></p> <p>Generic Crypto Utils is technical addon developed by the <a class="reference external" href="https://crnd.pro/">Center of Research &amp; Development company</a>.</p> <p>The goal of this addon is to provide generic utilities to add encryption to other addons. Currently it implements <code>generic.crypto.param</code> model, wich works same as <code>ir.config_parameter</code> but values stored are encrypted.</p> <p>It is required to place <em>encryption key</em> in odoo configuration file (<code>odoo.conf</code>). To do this, add following line to config file: <code>crypto_token = &lt;key&gt;</code></p> <p>Run following command to generate new key: <code>python -c &quot;from cryptography.fernet import Fernet; print(Fernet.generate_key())&quot;</code></p> <p>This module allows you to easily encrypt fields in <code>res.config.settings</code>. To do this, all you need is to set attribute <code>config_param=param_name</code> to such field, and this field will be encrypted. For example:</p> <blockquote> <pre> <code lang="python">class ResConfigSettings(models.TransientModel): _inherit = 'res.config.settings' my_secret_field = fields.Char(crypto_param='my.secret')</code> </pre> </blockquote> <p>After this, you can access this param inside your python code like this:</p> <blockquote> <pre> <code lang="python">secret = self.env['generic.crypto.param'].get_param('my.secret')</code> </pre> </blockquote> <a name="launch-your-own-itsm-system-in-60-seconds"></a> <h3>Launch your own ITSM system in 60 seconds:</h3> <p>Create your own <a class="reference external" href="https://yodoo.systems/saas/template/bureaucrat-itsm-demo-data-95">Bureaucrat ITSM</a> database</p> <p><a class="reference external" href="https://yodoo.systems"><img alt="badge3" src="https://img.shields.io/badge/powered%20by-yodoo.systems-00a09d.png" /></a></p> <a name="bug-tracker"></a> <h2>Bug Tracker</h2> <p>Bugs are tracked on <a class="reference external" href="https://github.com/crnd-inc/generic-addons/issues">GitHub Issues</a>. In case of trouble, please check there if your issue has already been reported.</p> <a name="maintainer"></a> <h3>Maintainer</h3> <img alt="https://crnd.pro/web/image/3699/300x140/crnd.png" src="https://crnd.pro/web/image/3699/300x140/crnd.png" /> <p>Our web site: <a class="reference external" href="https://crnd.pro/">https://crnd.pro/</a></p> <p>This module is maintained by the Center of Research &amp; Development company.</p> <p>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.</p> <p>For any questions <a class="reference external" href="mailto:info&#64;crnd.pro">contact us</a>.</p>