Giter Site home page Giter Site logo

Salts Error about bcrypt HOT 8 CLOSED

junque1r4 avatar junque1r4 commented on August 23, 2024
Salts Error

from bcrypt.

Comments (8)

alex avatar alex commented on August 23, 2024 1

from bcrypt.

alex avatar alex commented on August 23, 2024 1

There's no public API for this, and we have no interest in adding one, because it doesn't contribute to the purpose of this library: providing modern(-ish) password hashing. While educational purposes are laudable, we have no interest in adding extra API surface for it.

from bcrypt.

alex avatar alex commented on August 23, 2024

from bcrypt.

junque1r4 avatar junque1r4 commented on August 23, 2024

I tried copying the exactly same method, changing only the base64 code generated in _bcrypt.encode_base64 inside gensalt
telegram-cloud-photo-size-1-5003617564353473604-y
And the error persists...
telegram-cloud-photo-size-1-5003617564353473603-y
telegram-cloud-photo-size-1-5003617564353473601-y

  • A = Clone Method generated
  • B = bcrypt.gensalt()

Debugging a little more i saw that the base64 generated by bcrypt is different from all other b64 encode/decode:
The bcrypt b64 compared to others:
image
1 == Bcrypt Generated
2 == base64.encode Generated
3 == Base64 website Generated

from bcrypt.

junque1r4 avatar junque1r4 commented on August 23, 2024

Is there a way to use the bcript base64 alphabet?
I need to create my "own salt" so i can simulate vulnerabilities...
Thanks regards! 😊

from bcrypt.

alex avatar alex commented on August 23, 2024

from bcrypt.

junque1r4 avatar junque1r4 commented on August 23, 2024

Respectfully, I suggest considering the possibility of publishing the generation of Bcrypt's own B64 as a viable option. This change would be relatively simple, no? I created a simple function inside Bcrypt and everything works normally but it wouldn't be a viable option for everyone, turns this easy access would be great!

from bcrypt.

junque1r4 avatar junque1r4 commented on August 23, 2024

As I said, it's for education purposes!
skills/secure-code-game#18 Here the issue related if you want to see

from bcrypt.

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.