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)