GithubHelp home page GithubHelp logo

hamedfathi / passwordmeter Goto Github PK

View Code? Open in Web Editor NEW
22.0 3.0 7.0 499 KB

This password meter is based on a point system. Its main goal is to help the end-user with a stronger password.

License: MIT License

JavaScript 9.31% TypeScript 90.69%
typescript javascript nodejs password meter metering password-meter

passwordmeter's Introduction

Hi there ๐Ÿ‘‹, I'm Hamed Fathi

I've been programming for over ten years and have gained many software-making skills. I mainly use Microsoft's .NET ecosystem to build the software's behind-the-scenes parts and ensure I know its latest features. I also use JavaScript, TypeScript, and Angular to assemble the pieces of software that people interact with, helping to make them user-friendly. Apart from my development responsibilities, I also place significant importance on Quality Assurance (QA) and testing, which are integral to the software-making process. I sincerely hope you find value in using my open-source software regularly. Your engagement and feedback are very much appreciated, as they are crucial in helping continuous improvement and making sure the software meets our needs optimally.

"Yesterday, I was clever and wanted to change the world. Today, I am wise, so I am changing myself."
Rumi (Iranian poet 1207 โ€“ 1273)


HamedStack

HamedStack is a GitHub organization specializing in projects built with C# and JavaScript/TypeScript. I established HamedStack as a platform to share code repositories, each designed to address various programming needs. The organization houses over 70 projects spanning multiple applications, from client-side to server-side solutions.

HamedStack is committed to being a valuable resource for the coding community. The projects are continuously updated to keep pace with the ever-changing software development landscape. I invite you to explore the repositories, contribute to the projects, and collaborate with others to create better software solutions for tomorrow.


Connect with me:

hamed__fathi hamedfathi

Languages and Tools:

azure dotnet dotnet csharp javascript typescript html5 bootstrap angular xunit nsubstitute jest playwright cypress k6 mssql postgresql docker

passwordmeter's People

Contributors

brunoocasali avatar hamedfathi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

passwordmeter's Issues

Import Errors

import { PasswordMeter } from "password-meter";

Could not find a declaration file for module 'password-meter'. '.../node_modules/password-meter/dist/index.es.mjs' implicitly has an 'any' type. There are types at '.../node_modules/password-meter/dist/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'password-meter' library may need to update its package.json or typings.ts(7016)

Customise Supported Symbols

Our use-case for implementing a password meter only has support for a limited subset of symbols (eg. not emoji). This leads to the meter recommending as strong passwords that will actually be rejected by our validation. We'd like to be able to specify our own list of symbols which would be used instead of "not letter/number" when testing required values and calculating a score.

An example of what we'd like to do:

new PasswordMeter({"symbols": "!"}).getResponse("@") == {"score": -1, "status": "needs requirement(s)"}

One possible way this could be implemented would be to make the following changes:
PasswordMeter - add a property with a regex to identify symbols

this.symbolsRegex = requirements.symbols || "[^a-zA-Z0-9]";

isSymbol - change this to test against the new regular expression:

pattern = new RegExp("^" + this.symbolsRegex + "$");
return pattern.test(text);

getRequirementScore - change this to use the new regular expression for symbolsCount:

var symbolsCount = (text.match(new RegExp(this.symbols, "g")) || []).length;

Exclude doesn't work for uppercase and lowercase

Hi,

I've tried to use exclude with some a value 'test'. When I enter the password 'Test', it doesn't detect the excluded value. Can you make a fix so that exclusion works for both lowercase and uppercase input values (ex. 'tEst')?

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.