擅长:python、mysql、java
<p>要扩展<a href="https://stackoverflow.com/a/28373257/8346038">@j-f-sebastian's answer</a>,如果要使用sha-256(或任何256位哈希函数)哈希,请使用以下常量:</p>
<pre><code>b'06\x02\x01\x01010\r\x06\t`\x86H\x01e\x03\x04\x02\x01\x05\x00\x04 '
</code></pre>
<p>(是的,最后一个字符是空白)</p>