当前位置:网站首页>What encryption algorithm is used for the master password of odoo database?
What encryption algorithm is used for the master password of odoo database?
2022-07-04 15:29:00 【weixin_ forty-three million four hundred and twenty-five thousa】
The default encryption algorithm is pbkdf2_sha512, The result obtained by adding salt iterations to the hash algorithm is used as the algorithm of password . Its basic principle is through a pseudo-random function ( for example HMAC function ), Take plaintext and a salt value as input parameters , Then repeat the operation , And finally generate the key . If the number of repetitions is large enough , The cost of cracking will become very high . The addition of salt value will also increase “ Rainbow watch ” The difficulty of the attack .
Let's look at a password structure obtained by this encryption algorithm :
$pbkdf2-sha512 25000 25000 25000ztkbw5jT.l8LwThHKKX03g$EFv2mH5uUh6VEZi4mmvzphsDnQdI1ufTw6JxppxXPfRIUj5JBK9N/kd.5NgiCCylwgiyUqCk0CiugHdYQQXNKA
The password goes through $ Symbols are separated into 4 part , The first part is the name of the calculation algorithm , The second is the number of iterations , The third part is the salt value , The fourth part is hash value .
Activate odoo A virtual environment , Run on the command line python, The plaintext password can be ’admin’ To encrypt , You can also ’admin’ Replace it with any plaintext password you want to use .
from passlib.context import CryptContext
print(CryptContext(['pbkdf2_sha512','plaintext'],deprecated=['plaintext'],).encrypt('admin'))
Available :
$pbkdf2-sha512$25000$ztkbw5jT.l8LwThHKKX03g$EFv2mH5uUh6VEZi4mmvzphsDnQdI1ufTw6JxppxXPfRIUj5JBK9N/kd.5NgiCCylwgiyUqCk0CiugHdYQQXNKA
Put it in odoo.conf in ,
admin_passwd=$pbkdf2-sha512$25000$ztkbw5jT.l8LwThHKKX03g$EFv2mH5uUh6VEZi4mmvzphsDnQdI1ufTw6JxppxXPfRIUj5JBK9N/kd.5NgiCCylwgiyUqCk0CiugHdYQQXNKA
One day I forgot the database master password , You can use the above method to generate a new encrypted password , take odoo.conf Medium admin_passwd Just replace it .
边栏推荐
- c# 实现定义一套中间SQL可以跨库执行的SQL语句
- CentOS 6.3 下 PHP编译安装JSON模块报错解决
- 2022年九大CIO趋势和优先事项
- 夜天之书 #53 Apache 开源社群的“石头汤”
- Unity script API - transform transform
- 案例分享|金融业数据运营运维一体化建设
- AI做题水平已超过CS博士?
- Understand Alibaba cloud's secret weapon "dragon architecture" in the article "science popularization talent"
- Nine CIO trends and priorities in 2022
- Unity脚本API—Time类
猜你喜欢
MySQL index optimization
Ffprobe common commands
Redis shares four cache modes
Unity脚本生命周期 Day02
Techsmith Camtasia Studio 2022.0.2屏幕录制软件
案例分享|金融业数据运营运维一体化建设
Redis 發布和訂閱
AI做题水平已超过CS博士?
LNX efficient search engine, fastdeploy reasoning deployment toolbox, AI frontier paper | showmeai information daily # 07.04
数据湖治理:优势、挑战和入门
随机推荐
Dry goods | fMRI standard reporting guidelines are fresh, come and increase your knowledge
Temperature control system based on max31865
LeetCode 1184. 公交站间的距离 ---vector顺逆时针
[local differential privacy and random response code implementation] differential privacy code implementation series (13)
Intelligent customer service track: Netease Qiyu and Weier technology play different ways
In today's highly integrated chips, most of them are CMOS devices
Unity脚本API—Component组件
进制形式
Quelles sont les perspectives de l'Internet intelligent des objets (aiot) qui a explosé ces dernières années?
.Net之延迟队列
Ffprobe common commands
【读书会第十三期】FFmpeg 查看媒体信息和处理音视频文件的常用方法
Huawei cloud database DDS products are deeply enabled
Detailed explanation of MySQL composite index (multi column index) use and optimization cases
科普达人丨一文看懂阿里云的秘密武器“神龙架构”
mysql 联合主键_Mysql 创建联合主键[通俗易懂]
TechSmith Camtasia studio 2022.0.2 screen recording software
进制乱炖
Unity script API - time class
Nine CIO trends and priorities in 2022