aboutsummaryrefslogtreecommitdiff
path: root/passgen.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add wincrypt support for RNG on WindowsNicholas Tay2022-01-111-25/+49
|
* Enforce unsigned int for RNG generationNicholas Tay2022-01-111-2/+2
| | | | Need this for it to work properly, I think with the mod
* Split out logic into nice functionsNicholas Tay2022-01-111-49/+71
|
* BSD support for getentropy()Nicholas Tay2022-01-111-3/+14
|
* Reorganise/remove unneeded includesNicholas Tay2022-01-111-1/+4
|
* Use getentropy on macOSNicholas Tay2022-01-111-3/+3
|
* Switch to getentropy C api (to port to macOS)Nicholas Tay2022-01-101-3/+2
|
* Fix tabs -> spacesNicholas Tay2022-01-101-2/+2
|
* astyle + additional comments (+ to c89 style)Nicholas Tay2022-01-051-10/+22
| | | | https://gist.github.com/nicholastay/9eb6a455d6b17b810cd8e7bec2a5dfe7
* astyle K&RNicholas Tay2021-12-031-75/+75
|
* Print error messages to stderr insteadNicholas Tay2021-12-021-3/+2
|
* Needless import of unistd on LinuxNicholas Tay2021-12-021-2/+4
|
* Dynamically allocate password instead of using VLANicholas Tay2021-12-021-1/+16
| | | | | | | | | | This allows the code to compile with `cl` (MS Windows). Additionally allows massive passwords to be made more easily I suppose, as we aren't allocating (potentially dangerously) on the stack anymore. But, generation may be slightly slower due to allocation of memory. We could possibly have some statically allocated memory (e.g. 20 bytes) and if we go over then malloc().
* More explicit custom grammar flag for free()Nicholas Tay2021-12-021-2/+4
| | | | This also allows the program to be compiled with Clang.
* CRLF -> LFNicholas Tay2021-12-021-101/+101
|
* Less syscalls the better? Call getrandom() every generationNicholas Tay2021-12-021-6/+3
| | | | | Seems to hang every few executions if we getrandom one big chunk. Probably not enough entropy?
* Add better RNG for LinuxNicholas Tay2021-12-021-3/+19
|
* Fix VLA for password charsNicholas Tay2021-12-011-1/+2
| | | | | | I wasn't very clued in on how this works, and I thought it'd initialise properly, but clearly not. Need to include space for the null terminator and explicitly set it.
* Add config file, refactor classes to be cleaner with macrosNicholas Tay2021-12-011-20/+8
|
* Missing string.h importNicholas Tay2021-12-011-0/+1
|
* Take a single argument as a grammarNicholas Tay2021-12-011-1/+6
|
* Take in triplet/specials/numbers argumentsNicholas Tay2021-12-011-2/+32
|
* Adjust seeding and compiler errorsNicholas Tay2021-11-301-9/+6
|
* Initial passgen with no customisable grammarNicholas Tay2021-11-301-0/+66