Pure-Bash fallback for pwqgen / pwgen #167

Closed
opened 2021-05-30 19:23:43 +00:00 by 3wordchant · 3 comments
Owner

Following #147

Is there native soloutions we can have as a fallback like /dev/urandom? Might be good to make pwqgen an optional dependancy

I think just moving to a more native solution as a fallback would help portability.

Following #147 > Is there native soloutions we can have as a fallback like /dev/urandom? Might be good to make pwqgen an optional dependancy > > I think just moving to a more native solution as a fallback would help portability.
3wordchant added the
enhancement
label 2021-05-30 19:23:43 +00:00
decentral1se added this to the Beta release milestone 2021-05-30 20:12:00 +00:00
Owner

For pwgen:

  • date | md5sum / date | sha256sum
  • cat /dev/urandom | tr -dc 'a-zA-Z0-9' | head -c 14
For `pwgen`: - `date | md5sum` / `date | sha256sum` - `cat /dev/urandom | tr -dc 'a-zA-Z0-9' | head -c 14`
Owner

For pwqgen:

  • shuf -n4 /usr/share/dict/words | tr -d '\n'

Or maybe vendoring some golang/rust binary that does this also? Couldn't find one though.

For `pwqgen`: - `shuf -n4 /usr/share/dict/words | tr -d '\n'` Or maybe vendoring some golang/rust binary that does this also? Couldn't find one though.
Owner

I was too lazy to wire up the fallback logic in e9fb9e56ad but if we see issues with my approach I guess we can come back to it.

I was too lazy to wire up the fallback logic in https://git.autonomic.zone/coop-cloud/abra/commit/e9fb9e56ad599febe24df5e9125b0dc0709f2eaf but if we see issues with my approach I guess we can come back to it.
This repo is archived. You cannot comment on issues.
No Milestone
No Assignees
2 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: coop-cloud/abra#167
No description provided.