Giter Club home page Giter Club logo

Comments (2)

bv-hamanfnn avatar bv-hamanfnn commented on August 22, 2024 1

Hey Luzifer,

thanks for your tips, learnt something new! Looks like I'll remove the password generator from my instance and search for a better option.

from ots.

Luzifer avatar Luzifer commented on August 22, 2024

As a first remark:

password += characterSet.charAt(Math.floor(Math.random() * characterSet.length))

Please NEVER use Math.random() for secure purposes! That random number generator is NOT cryptographically secure!


In regards of adding a password generator to OTS: I think there are way better tools (i.e. passwd.fyi using Luzifer/password, Keepass*, Bitwarden, …) to generate passwords (for example have a look at the list of checks my tool applies to the generated password to ensure "dict"-attacks are pointless).

OTS is intended to share secrets (passwords, steam-keys, text, …) in a secure way. Following the Unix philosophy - especially sentence one

Make each program do one thing well. To do a new job, build afresh rather than complicate old programs by adding new "features".

we should not add features out of this scope.

In the end within OTS a password generator already exist but only for use as a source for the encryption key and with a much more limited character set. Sure we could expose that generator to fill the secret on its own but this would add even more buttons to the interface and more complexity to the tool.

In regards of the Unix philosophy and the KISS principle ("keep it stupidly simple" - which we already stretched a lot) lets not add this.

from ots.

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.