比特币和加密

Bitcoin and Encryption

我正在做一个关于比特币安全的学校项目,我只是想知道是否有人可以解释,可能有可靠的来源,比特币钱包如何使用密码作为加密,EVP 是什么意思("The passphrase is converted to a key/iv using EVP") 以及人们对比特币钱包加密的任何信息都将不胜感激。

谢谢 <3

需要说明的是,钱包加密与比特币协议无关。如果您要创建一个新客户端,您可以根据需要加密您的私钥。

根据this wiki the original bitcoin client hashes the passphrase with SHA-512 and then uses a key derivation algorithm described in the official documentation。实际加密是 AES-256。

EVP("Envelope")只是openssl的一个工具,它封装了crypo的实现,这样你就可以在不改变太多代码的情况下改变底层算法。