当前位置:网站首页>MySQL storage data encryption
MySQL storage data encryption
2022-07-04 22:13:00 【CodingSir】
There are two mainstream encryption methods
ENCODE And DECODE
# Build a test sheet
create table users(
username varchar(128), # The user nickname
password blob # password
) engine=innodb default charset=utf8;
# Insert a test statement
INSERT INTO users (username, password) VALUES ('john', ENCODE('guessme', 'salt'));
commit;
# Inquire about john Password ( With mysql workbench)
select t.username, DECODE(t.password,'salt') as password from users t where t.username = 'john';
# In the query structure password Value up , Right click ,'open value in viewer'. You can see text TAB Password plaintext under .
AES_ENCRYPT And AES_DECRYPT
The security level of this encryption method is better than encode high , It has been deprecated in the new version of the database encode And decode.
# The test table , Also use users
# Insert a statement
INSERT INTO users (username, password) VALUES ('steven', aes_encrypt('password', 'salt'));
commit;
# Inquire about steven Password ( With mysql workbench)
select t.username, aes_decrypt(t.password,'salt') as password from users t where t.username = 'steven';
边栏推荐
- Open3d surface normal vector calculation
- Representation of confidence interval
- 力扣_回文数
- 并发优化总结
- HDU - 2859 Phalanx(DP)
- QT - double buffer plot
- 服装企业为什么要谈信息化?
- How can the advertising system of large factories be upgraded without the presence of large models
- HUAWEI nova 10系列发布 华为应用市场筑牢应用安全防火墙
- Force buckle_ Palindrome number
猜你喜欢

使用 BlocConsumer 同时构建响应式组件和监听状态

Redis has three methods for checking big keys, which are necessary for optimization

国产数据库乱象

【C语言进阶篇】数组&&指针&&数组笔试题

QT - plot other problems

DevEco Device Tool 3.0 Release带来5大能力升级,让智能设备开发更高效

Kdd2022 | what features are effective for interaction?

保证接口数据安全的10种方案

Éducation à la transmission du savoir | Comment passer à un test logiciel pour l'un des postes les mieux rémunérés sur Internet? (joindre la Feuille de route pour l'apprentissage des tests logiciels)
![[acwing] solution of the 58th weekly match](/img/e3/fd2c0ffbc9c7ca8a71875882d6c71b.png)
[acwing] solution of the 58th weekly match
随机推荐
玩转gRPC—深入概念与原理
What is the stock account opening process? Is it safe to use flush mobile stock trading software?
股票开户流程是什么?使用同花顺手机炒股软件安全吗?
传智教育|如何转行互联网高薪岗位之一的软件测试?(附软件测试学习路线图)
机器学习笔记 - 互信息Mutual Information
解决异步接口慢导致的数据错乱问题
Huawei Nova 10 series released Huawei application market to build a solid application security firewall
虚拟人产业面临的挑战
sqlserver对数据进行加密、解密
做BI开发,为什么一定要熟悉行业和企业业务?
Sorting and sharing of selected papers, systems and applications related to the most comprehensive mixed expert (MOE) model in history
1807. 替换字符串中的括号内容
el-tree结合el-table,树形添加修改操作
凭借了这份 pdf,最终拿到了阿里,字节,百度等八家大厂 offer
Cadre WebGIS - kalrry
国产数据库乱象
Bookmark
El tree combined with El table, tree adding and modifying operations
A large number of virtual anchors in station B were collectively forced to refund: revenue evaporated, but they still owe station B; Jobs was posthumously awarded the U.S. presidential medal of freedo
WebGIS framework -- kalrry