Code Monkey home page Code Monkey logo

Comments (7)

gautham2k3 avatar gautham2k3 commented on June 9, 2024

Assign it t me, I will do that simply by modifying the function

from passwd-manager.

Duzzuti avatar Duzzuti commented on June 9, 2024

yeah that should work

from passwd-manager.

dlsf avatar dlsf commented on June 9, 2024

Optimized in #5

from passwd-manager.

Duzzuti avatar Duzzuti commented on June 9, 2024

this issue is still open, no working solution provided

from passwd-manager.

Tonystark121 avatar Tonystark121 commented on June 9, 2024

@Duzzuti assign me this issue. Give me some brief idea about VALID_PASS_CHARSET which help me solve this issue.

from passwd-manager.

Duzzuti avatar Duzzuti commented on June 9, 2024

yes, VALID_PASS_CHARSET is a string which contains characters that are valid. That means that every character of a valid password has to be in this VALID_PASS_CHARSET
@dlsf has optimized this string that you can perform an optimal linear search (like its done in the script rn)

from passwd-manager.

Duzzuti avatar Duzzuti commented on June 9, 2024

i think you missunderstood the task.
You have just rewritten the current function.
The target is to give a feedback to the user.
I have an idea:
-> create a new method getError() which returns a string variable error
-> create this error variable in the class
-> if we return false because the password was invalid. We will set the error string to something like "password too short"
-> we can call getError if the password is invalid to get the exact error message

but get your own idea. The user has to get a message like: there is an invalid character " " in the password if the password contains a space for example

from passwd-manager.

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.