summaryrefslogtreecommitdiff
path: root/lib/trocla/util.rb
AgeCommit message (Collapse)Author
2014-04-03add option to generate shell-safe passwordsasq
basically excludes characters that might be dangerous if used in shell. many passwords generated by trocla may end up in some sort of bash scripts (initscripts, sourced shell variables, etc) which may yeld problems with default trocla random generator. this can be now changed either in troclarc (with "shellsafe: true") or on (ie. "trocla create foo plain '{ length: 32, shellsafe: true}'").
2012-12-25Security: use SecureRandom for a much better random generator - Kernel.rand ↵mh
is just crap
2011-12-17reduce special characters.mh
Various apps, especially php-apps :/ have a problem with '<' or '>' as a password character. To reduce the amount of pain from a freshly generated password, we remove these characters.
2011-08-05salt should not really containt special charactersmh
2011-07-27initial release of troclamh