Coder Social home page Coder Social logo

failed to parse json about rbw HOT 10 CLOSED

doy avatar doy commented on July 30, 2024
failed to parse json

from rbw.

Comments (10)

bashfulrobot avatar bashfulrobot commented on July 30, 2024 1

latest version & error:

❯ rbw login
rbw login: failed to log in to bitwarden instance: unimplemented cipherstring type: 0
❯ rbw --version
rbw 0.4.1

from rbw.

bashfulrobot avatar bashfulrobot commented on July 30, 2024 1

OK - I just exported my entire vault. Purged it and reported back into Bitwarden via the web interface.

I am still getting:

rbw login: failed to log in to bitwarden instance: invalid cipherstring

So that did not seem to help.

from rbw.

doy avatar doy commented on July 30, 2024

are you using two-step login, by any chance? (and if so, which type are you using?) i don't have that implemented yet, but i'll try to get to it soon.

if that's not the issue, let me know and i'll dig further.

from rbw.

bashfulrobot avatar bashfulrobot commented on July 30, 2024

I did not even think of that. Yeah I am. The one I use is Google Authenticator based.

from rbw.

doy avatar doy commented on July 30, 2024

i've added authenticator-based two-step login support in version 0.4.0 - let me know if it works for you!

from rbw.

bashfulrobot avatar bashfulrobot commented on July 30, 2024

Well, I have the prompt for 2fa, however, after entering the token I am faced with:

❯ rbw login
rbw login: failed to log in to bitwarden instance: invalid cipherstring

Thank You.

from rbw.

doy avatar doy commented on July 30, 2024

hmmm, interesting. this one is a bit difficult to track down without an actual copy of your vault to poke at. can you try again with version 0.4.1? i've added some more logging that might at least give me a place to start looking.

out of curiosity, what clients are you currently using? also, how long have you been using bitwarden?

from rbw.

bashfulrobot avatar bashfulrobot commented on July 30, 2024

It is a google authenticator using the authy client.

The interesting thing - bitwarden registers the login. I received my email stating that I had a new login from a new device. I have been using BW for years.

I'll try again with the new version.

from rbw.

doy avatar doy commented on July 30, 2024

ah, yeah, i only currently have support for the cryptographic algorithms that the current bitwarden clients use, but it looks like you still have some entries encrypted with an older version. the code for this should be fairly straightforward, but it's a bit tricky for me to fix because i'm not really sure how to generate test entries using the older format (to make sure i'm implementing the right thing). i'm open to pull requests for this, otherwise i'll see if i can dig up some old bitwarden clients to test this with at some point.

the other workaround here is that i'm fairly sure that if you export your vault and then reimport it, it should start working, although i know that's pretty annoying.

from rbw.

doy avatar doy commented on July 30, 2024

based on #40 (comment) it looks like rotating your encryption key is the thing that you actually need to do, since just deleting and recreating the vault with the same account won't actually change the encryption method.

i'm going to close this out for now, but feel free to reopen or file another ticket if this issue persists.

from rbw.

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.