update pw-token-gen.py

Bug #1732786 reported by Cam J. Loader
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
Fix Released
Wishlist
Unassigned

Bug Description

We want to significantly simplifying this code. There's no need for dynamic dispatch of methods based on string building. You can generate a password with 128-bits of entropy with binascii.hexlify(os.urandom(16)) and token gen/key gen are just pure random bytes with specific lengths.

Revision history for this message
Jean-Philippe Evrard (jean-philippe-evrard) wrote :

It would definitely be an improvement.

Changed in openstack-ansible:
status: New → Confirmed
importance: Undecided → Wishlist
Changed in openstack-ansible:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.