pointbiz/bitaddress.org — pull request #77 by mrcope (2014-03-31 01:51:05+00:00)
Title: Removes the trimming that occurs on user input passphrases for both BIP3...

Issue is that the BIP38 encryption input on the 'Paper Wallet' tab is NOT trimmed, but subsequent passphrase input on the 'Wallet Details' tab is trimmed. Thus the user is able to input leading or trailing spaces to encrypt the private key, but cannot include those leading and/or trailing spaces to decrypt the private key.

An alternate solution would be to also trim the input on the encryption side, however that solution unnecessarily restricts what the user is able to input as a passphrase. Also, it's possible that a user has already created a BIP38 encrypted private key with leading/trailing spaces and would not be able to decrypt that key on the site as-is or with the alternate solution.

I also removed the trimming that occurs on brain wallet pass phrases for the same reasons.

Note: This is my first contribution to a open source project, so I'm not exactly sure how to go about contributing. If I have made a technical or proprietary snafu, please forgive me.