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)
相关推荐
无足鸟ICT5 分钟前
【RHCA+】swap和物理内存
linux
承渊政道1 小时前
【Python编程快速上手—让繁琐工作自动化】(列表:把数据排成队,从下标取值到深拷贝)
开发语言·python·pycharm·自动化·列表
大胖爱学习_MJ1 小时前
Agent 如何安全地拿数据库密码?基于 HashiCorp Vault 的动态凭证下发
经验分享·python
FungLeo1 小时前
FengCMS · PHP+MySQL 升级实录 · MySQL DDL不能回滚:模型字段结构操作的失败续做
android·mysql·php·工程实践·fengcms
隔窗听雨眠1 小时前
MySQL锁等待的定位方法与治理体系
mysql·锁机制·数据库运维
tryCbest2 小时前
Python 爬虫从入门到实战(一):基础篇——从零写出第一个爬虫
开发语言·爬虫·python
无小道2 小时前
Python语句的特色
python·语句
2601_967980113 小时前
python pytest如何编写测试
python·测试用例·pytest·函数·assert
2601_967980114 小时前
Python中heapq模块的各种用法实例
数据结构·python·算法·应用实例·heapq模块
大胖爱学习_MJ4 小时前
超越向量检索:用 Spring Boot + Neo4j 手搓 GraphRAG 知识图谱记忆
java·后端·python