erlef / rebar3_hex

Rebar3 Hex library
Apache License 2.0
101 stars 49 forks source link

Warn user when local password is greater than 32 bytes #190

Closed starbelly closed 3 years ago

starbelly commented 4 years ago

The cryptographic cipher we use for encrypting hex keys has an upper bounds of key size of 32 bytes, yet we don't prompt the user to enter in something less than or equal to that if they enter something greater than said upper bounds. This leads to a crash.

Instead, if the user enters a local password that is > 32 bytes we should re-prompt them to re-enter a shorter local password.

starbelly commented 3 years ago

Resolved via #257