:: Re: [Libbitcoin] Encrypting a walle…
Góra strony
Delete this message
Reply to this message
Autor: Neill Miller
Data:  
Dla: Police Terror, libbitcoin
Temat: Re: [Libbitcoin] Encrypting a wallet with AES
I strongly agree with what Eric said, but to answer your question, yes, it's designed to work on fixed sized blocks of data, so you would have to pad the data if its not an even multiple in size. Trying to come up with a password pairing scheme likely won't be as effective as bip38.

-Neill.

On October 13, 2016 12:31:00 PM CDT, Police Terror <PoliceTerror@???> wrote:
>So libbitcoin defines the 2 functions aes256_encrypt() and
>aes256_decrypt().
>
>It uses a 32 byte secret and 16 byte block size.
>
>If I want to encrypt 5000 bytes, then I have encrypt it as 313 blocks
>which is 5008 bytes right?
>
>How can I add a password to this? Can I simply do this?
>
> secret = bitcoin_hash("mypassphrase123")
>
>Or should I use the scrypt function instead? How can I use that?
>_______________________________________________
>Libbitcoin mailing list
>Libbitcoin@???
>https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/libbitcoin