Code Monkey home page Code Monkey logo

passtheword's People

Contributors

nerdyness avatar

Watchers

 avatar

passtheword's Issues

Support multiple tokens

Imagine your password expires and you're not allowed to set the password to one that was previously set.

A good work around would be to store the secret in token1.txt. Then, once you need a new password you can create a new password which will create token2.txt and store the state in a lookup table. I.e. "facebook.com" is now hashed with token2.txt. If let's say twitter.com also needs a new password, it will also use token2.txt. Once facebook.com needs a new password token3.txt will be created as a shared token.

Obviuosly the lookup table needs to be backed up. Maybe a clean-up process can delete all unused tokens? The idea is to have every password to default to token1.txt, however if there are only token3.txt references in the lookup table then token2.txt could be removed and token3.txt renamed to token2.txt although there is very little benefit for doing that. It's more a case of expiring an existing token when it's compromised or similar.

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.