Giter Club home page Giter Club logo

Comments (7)

cantonbecker avatar cantonbecker commented on August 17, 2024

On Dec 17, 2013, at 12:44 PM, andershjort wrote:

.. and then copy / paste the encrypted private key to "Wallet details" and enter the same passphrase, sometimes I get "Incorrect passphrase for this encrypted private key", other times it just works.

Hmm, is there any chance it has to do with the copy/paste clipboard, e.g. whether or not there's any whitespace captured during the copy (leading space, trailing space, or carriage return?)

When you said this was possibly intermittent and OS/browser related, this reminded me of how different OS/browsers handle copy/paste differently, especially when doing something like double-click to highlight entire phrase then copy/paste

I would be interested if you're ever able to replicate this problem by typing in the password during both encoding and decoding.


Canton Becker
[email protected] • (505) 570-0635 • http://cantonbecker.com

from bitaddress.org.

andershjort avatar andershjort commented on August 17, 2024

I don't think it has to do with copy/paste. I have also entered the encrypted private key by hand a couple of times with the same result: Sometimes the decoding fails, sometimes it works for the same passphrase. And also sometimes it goes from fail to success or back without me touching the text input fields, only pressing "Decrypt BIP38" again.

from bitaddress.org.

andershjort avatar andershjort commented on August 17, 2024

Seems like it could be related to this:
cantonbecker#6 (comment)

from bitaddress.org.

cantonbecker avatar cantonbecker commented on August 17, 2024

andershjort, since you said, "I can only reproduce this on OSX 10.8.5 / Safari 6.0.5 on my couple year old MacBook Air" I think this is highly likely. So far this is looking like something specifically related to 6.0.5. 6.1 doesn't produce the same problem.

That said, if you can come up with a particular test case that consistently produces the problem, that would be a great help. I'm pretty sure that you could hone down the particular problem so that it doesn't seem erratic/random. This is math after all, so it should be possible to come up with some test scenarios that fail 100% of the time. :)

from bitaddress.org.

cantonbecker avatar cantonbecker commented on August 17, 2024

andershjort, I'm wrong. It is intermittent, with no discernible pattern.

Yup, you're on to something. It's intermittent for sure.

Using browser: OS X 10.7.5 / Safari 6.0.5 (7536.30.1)

Here are eight passes, encrypting the identical key with the identical password. The "6P...9q" is incorrect. The "6P..XA" is correct, what other browsers like Chrome and FF consistently come up with.

Pass 1: 6PRNXA7M57uqSYXX2TXHkfNJEVMiWarkPkqUv3AsZa5r41u3VpXHLkUD9q
Pass 2: 6PRNXA7M4qEppBJCHM2SEizfna7XTomzXwdCBrEG6Mjo3nU6iziS6vWWXA
Pass 3: 6PRNXA7M57uqSYXX2TXHkfNJEVMiWarkPkqUv3AsZa5r41u3VpXHLkUD9q
Pass 4: 6PRNXA7M4qEppBJCHM2SEizfna7XTomzXwdCBrEG6Mjo3nU6iziS6vWWXA
Pass 5: 6PRNXA7M4qEppBJCHM2SEizfna7XTomzXwdCBrEG6Mjo3nU6iziS6vWWXA
Pass 6: 6PRNXA7M57uqSYXX2TXHkfNJEVMiWarkPkqUv3AsZa5r41u3VpXHLkUD9q
Pass 7: 6PRNXA7M57uqSYXX2TXHkfNJEVMiWarkPkqUv3AsZa5r41u3VpXHLkUD9q
Pass 8: 6PRNXA7M4qEppBJCHM2SEizfna7XTomzXwdCBrEG6Mjo3nU6iziS6vWWXA

from bitaddress.org.

artiomchi avatar artiomchi commented on August 17, 2024

Ok, got some further progress on it. I've narrowed it down to the scrypt library, and managed to replicate it with minimal code.

Since no other library is required to replicate the test, I've opened an issue in the scrypt-js project, where we can follow-up, and hopefully find a fix.

cheongwy/node-scrypt-js#2

from bitaddress.org.

pointbiz avatar pointbiz commented on August 17, 2024

Duplicate of #56

from bitaddress.org.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.