Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bash-supergenpass: init at 2012-11-02 #29797

Merged
merged 3 commits into from Sep 26, 2017
Merged

Conversation

fgaz
Copy link
Member

@fgaz fgaz commented Sep 26, 2017

Motivation for this change

Add the bash implementation of supergenpass.com, since no other implementation is present in nixpkgs

Things done
  • (I actually used --pure. Is it the same?) Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

The only thing I'm not sure of is whether to include or not the dependencies (openssl etc) in buildInputs.

@fgaz fgaz requested a review from edolstra as a code owner September 26, 2017 08:59
description = "Bash shell-script implementation of SuperGenPass password generation";
longDescription = ''
Bash shell-script implementation of SuperGenPass password generation
Usage: ./supergenpass.sh <domain> [ <length> ]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks more like a manual then a description. Do you want to keep it that way?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, bash-supergenpass does not have an --help argument, so I put the usage there. Is there a more appropriate place where to put it?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok then.

@Mic92
Copy link
Member

Mic92 commented Sep 26, 2017

The choice of the hash algorithm seems a little bit strange to me: https://github.com/lanzz/bash-supergenpass/blob/master/supergenpass.sh#L12

I would have chosen something like bcrypt or PBKDF2 at least.

@fgaz
Copy link
Member Author

fgaz commented Sep 26, 2017

@Mic92 yeah, the algorithm is not the best but It's the one used by supergenpass.

https://oneshallpass.com/ is probably the ideal solution, but it lacks implementations (eg for android or sailfish or lightweight linux cli), while sgp has them.

@fgaz fgaz changed the title Bash supergenpass bash-supergenpass: init at 2012-11-02 Sep 26, 2017
@Mic92 Mic92 merged commit 1d16383 into NixOS:master Sep 26, 2017
@fgaz fgaz deleted the bash-supergenpass branch September 26, 2017 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants