码迷,mamicode.com
首页 > 数据库 > 详细

2017.9.5 postgresql加密函数的使用

时间:2017-09-06 09:55:33      阅读:296      评论:0      收藏:0      [点我收藏+]

标签:加密   iges   9.png   pass   具体步骤   question   enc   from   postgres   

需要安装的插件的名字:pgcrypto
stackoverflow:
 
具体步骤:
1.add the extensions: create extension pgcrypto
 
2.check the extensions: select * from pg_available_extensions 
 技术分享
 
3.use the extensions: select ‘{SHA}‘||encode(digest(‘test‘, ‘sha1‘), ‘base64‘);
技术分享

 

2017.9.5 postgresql加密函数的使用

标签:加密   iges   9.png   pass   具体步骤   question   enc   from   postgres   

原文地址:http://www.cnblogs.com/lyh421/p/7482869.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!