pg用户角色密码默认使用md5加密
来源:互联网 发布:淘宝乔丹是真的吗 编辑:程序博客网 时间:2024/04/29 20:21
postgres9.6@[local]:5432 postgres# create role r_test unencrypted password 'hello123' login;
CREATE ROLE
Time: 2.422 ms
postgres9.6@[local]:5432 postgres# select * from pg_shadow
;
usename | usesysid | usecreatedb | usesuper | userepl | usebypassrls | passwd | valuntil | useconfig
-------------+----------+-------------+----------+---------+--------------+-------------------------------------+----------+-----------
b | 16389 | f | f | f | f | md583aeaa4e529325e234e9c5c2e01e6c08 | NULL | NULL
test | 16385 | f | f | f | f | md505a671c66aefea124cc08b76ea6d30bb | NULL | NULL
a | 16388 | f | f | f | f | md5039af99d1e9a4b194e0eb800a6f8d018 | NULL | NULL
postgres9.6 | 10 | t | t | t | t | md5ad3e154e45b3eee89b51fdf2e60dafc6 | NULL | NULL
r_test | 32788 | f | f | f | f | hello123 | NULL | NULL
(5 rows)
Time: 0.767 ms
postgres9.6@[local]:5432 postgres# create role c login password 'cccccc';
CREATE ROLE
Time: 3.847 ms
postgres9.6@[local]:5432 postgres# select * from pg_shadow
;
usename | usesysid | usecreatedb | usesuper | userepl | usebypassrls | passwd | valuntil | useconfig
-------------+----------+-------------+----------+---------+--------------+-------------------------------------+----------+-----------
b | 16389 | f | f | f | f | md583aeaa4e529325e234e9c5c2e01e6c08 | NULL | NULL
test | 16385 | f | f | f | f | md505a671c66aefea124cc08b76ea6d30bb | NULL | NULL
a | 16388 | f | f | f | f | md5039af99d1e9a4b194e0eb800a6f8d018 | NULL | NULL
postgres9.6 | 10 | t | t | t | t | md5ad3e154e45b3eee89b51fdf2e60dafc6 | NULL | NULL
r_test | 32788 | f | f | f | f | hello123 | NULL | NULL
c | 32789 | f | f | f | f | md5e24b312f819219ec10b8b391a44d4974 | NULL | NULL
(6 rows)
Time: 0.824 ms
postgres9.6@[local]:5432 postgres# select md5('ccccccc'); -->括号中格式为“密码+用户名”
md5
----------------------------------
e24b312f819219ec10b8b391a44d4974
(1 row)
Time: 0.276 ms
CREATE ROLE
Time: 2.422 ms
postgres9.6@[local]:5432 postgres# select * from pg_shadow
;
usename | usesysid | usecreatedb | usesuper | userepl | usebypassrls | passwd | valuntil | useconfig
-------------+----------+-------------+----------+---------+--------------+-------------------------------------+----------+-----------
b | 16389 | f | f | f | f | md583aeaa4e529325e234e9c5c2e01e6c08 | NULL | NULL
test | 16385 | f | f | f | f | md505a671c66aefea124cc08b76ea6d30bb | NULL | NULL
a | 16388 | f | f | f | f | md5039af99d1e9a4b194e0eb800a6f8d018 | NULL | NULL
postgres9.6 | 10 | t | t | t | t | md5ad3e154e45b3eee89b51fdf2e60dafc6 | NULL | NULL
r_test | 32788 | f | f | f | f | hello123 | NULL | NULL
(5 rows)
Time: 0.767 ms
postgres9.6@[local]:5432 postgres# create role c login password 'cccccc';
CREATE ROLE
Time: 3.847 ms
postgres9.6@[local]:5432 postgres# select * from pg_shadow
;
usename | usesysid | usecreatedb | usesuper | userepl | usebypassrls | passwd | valuntil | useconfig
-------------+----------+-------------+----------+---------+--------------+-------------------------------------+----------+-----------
b | 16389 | f | f | f | f | md583aeaa4e529325e234e9c5c2e01e6c08 | NULL | NULL
test | 16385 | f | f | f | f | md505a671c66aefea124cc08b76ea6d30bb | NULL | NULL
a | 16388 | f | f | f | f | md5039af99d1e9a4b194e0eb800a6f8d018 | NULL | NULL
postgres9.6 | 10 | t | t | t | t | md5ad3e154e45b3eee89b51fdf2e60dafc6 | NULL | NULL
r_test | 32788 | f | f | f | f | hello123 | NULL | NULL
c | 32789 | f | f | f | f | md5e24b312f819219ec10b8b391a44d4974 | NULL | NULL
(6 rows)
Time: 0.824 ms
postgres9.6@[local]:5432 postgres# select md5('ccccccc'); -->括号中格式为“密码+用户名”
md5
----------------------------------
e24b312f819219ec10b8b391a44d4974
(1 row)
Time: 0.276 ms
阅读全文
0 0
- pg用户角色密码默认使用md5加密
- java使用MD5密码加密
- IOS 密码使用MD5加密
- java 登陆用户的密码MD5加密
- MD5 加密登录用户名称和密码
- 使用MD5把用户添加的密码进行加密 ASP.net应用
- C#:使用MD5对密码进行加密!
- 使用MD5对密码进行加密
- 使用MD5对密码进行加密
- 密码使用MD5加密为32位
- 11使用MD5加密设置的密码
- 【JAVA】字符串密码使用MD5加密
- android使用MD5算法加密密码
- 使用MD5对明文密码进行加密
- 使用Md5算法对密码进行加密
- shiro 使用md5密码加密 锁定账户
- 使用MD5加密密码工具类
- 小程序密码使用md5加密
- Andoroid进阶--底部图片选择Dialog
- java文件传输基础:OutputStream类及实现文件的复制
- JavaWeb-Listener2-在线用户统计
- 【JavaWeb】SpringMvc返回json
- 如何在去掉空数据及如何在matplotlib中显示数据线性拟合
- pg用户角色密码默认使用md5加密
- Excel 向程序发送命令时出现问题
- C3P0连接池
- mysql 链表查询(合计总数)
- dedecms中无法直接在arctype数据表中直接调取栏目链接
- pg(HGDB)在非默认位置创建表空间
- 平摊就是沼泽,除非你是金箍棒
- 关于如何方便使用枚举
- Java中能否利用函数参数来返回值