Parade Series - SHA256


shell

c 复制代码
/opt/admin/mvp/open>printf 0123456789abcdef | openssl dgst -sha256 ;
SHA2-256(stdin)= 9f9f5111f7b27a781f1f1ddde5ebc2dd2b796bfc7365c9c28b548e564176929f

python

c 复制代码
/opt/admin/mvp/open>python
>>> import hashlib
>>> plain = '0123456789abcdef'
>>> sha256 = hashlib.sha256(); sha256.update(plain.encode('utf-8')); print(sha256.hexdigest());
9f9f5111f7b27a781f1f1ddde5ebc2dd2b796bfc7365c9c28b548e564176929f

mysql

c 复制代码
/opt/admin/mvp/open>mysql -u mvp -p
Enter password:
mysql> SELECT SHA2('0123456789abcdef', 256);
+------------------------------------------------------------------+
| SHA2('0123456789abcdef', 256)                                    |
+------------------------------------------------------------------+
| 9f9f5111f7b27a781f1f1ddde5ebc2dd2b796bfc7365c9c28b548e564176929f |
+------------------------------------------------------------------+
1 row in set (0.00 sec)
相关推荐
weixin_5806140026 分钟前
如何防止SQL注入利用存储过程_确保存储过程不拼字符串.txt
jvm·数据库·python
weixin_4087177741 分钟前
mysql权限表查询性能如何优化_MySQL系统权限缓存原理
jvm·数据库·python
吕源林41 分钟前
怎么优化MongoDB的软删除设计_布尔标记与删除时间戳
jvm·数据库·python
想唱rap43 分钟前
C++智能指针
linux·jvm·数据结构·c++·mysql·ubuntu·bash
吕源林1 小时前
如何解决SQL存储过程连接泄露_确保在异常后关闭连接
jvm·数据库·python
weixin_447443251 小时前
AI启蒙Lean4
python·c#
Ulyanov1 小时前
雷达电子战仿真通信需求与Python实现挑战
python·数据通信·系统仿真·雷达电子对抗仿真
Strugglingler1 小时前
基于whiptail开发shell导航工具
linux·shell·ui设计·whiptail
艾醒(AiXing-w)1 小时前
Linux系统管理(二十)——Linux root磁盘不足?一站式应急清理方案(亲测可用)
linux·运维·服务器
wq_1 小时前
Mysql-MVCC
mysql·面试