aboutsummaryrefslogtreecommitdiff
path: root/lpass.c
AgeCommit message (Collapse)Author
2023-04-14Minor formatting and refactoring.0.9.1Samuel Fadel
* lpass.c: Changed the order of some arguments, renamed variables/args where necessary to make them clearer.
2023-04-12More defensive init; fix logic bug introduced earlier.Samuel Fadel
* lpass.c: Even more aggressive init, consume_entropy overwrites the given buffer instead of relying on it being properly initialized.
2023-04-12Rename/retype some args and variables, better intializations.Samuel Fadel
* lpass.c: Better variable names; fixed type of passlen in calc_entropy; smaller variable names where it makes sense; initialize more defensively with cheaper initializations.
2023-04-12Remove uneeded init, improve comments, var names.Samuel Fadel
* lpass.c: calc_entropy: salt and key are directly filled with data after init, do not need to be initialized beforehand.
2023-04-11Use size_t for lengths and complete Makefile.0.9Samuel Fadel
* lpass.c: Use size_t for all lengths * Makefile: Proper targets (clean, install, uninstall) added and more strict compilation flags * LICENSE: Actually add file...
2023-04-11Added LICENSE and implemented charset restrictions.0.1Samuel Fadel
As per my usage, lpass is now complete. * LICENSE: Added. * README.md: Updated with more information. * lpass.c: Implemented charset restrictions.
2023-04-09Proper argument parsing.Samuel Fadel
Also started charset restriction implementation. * lpass.c: Argument parsing & stub charset restriction.
2023-04-08Initial commit.Samuel Fadel
An initial working implementation of the password generating algorithm of lesspass. Lacks any sort of documentation or usage info and simply prints the generated password on stdout. * lpass.c: Initial implementation of lesspass * Makefile: A just works version