2017.9.5 postgresql加密函数的使用
需要安装的插件的名字: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');
fighting for this