Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2022-01-11 | Add wincrypt support for RNG on Windows | Nicholas Tay | 1 | -25/+49 | |
2022-01-11 | Enforce unsigned int for RNG generation | Nicholas Tay | 1 | -2/+2 | |
Need this for it to work properly, I think with the mod | |||||
2022-01-11 | Split out logic into nice functions | Nicholas Tay | 1 | -49/+71 | |
2022-01-11 | BSD support for getentropy() | Nicholas Tay | 1 | -3/+14 | |
2022-01-11 | Reorganise/remove unneeded includes | Nicholas Tay | 1 | -1/+4 | |
2022-01-11 | Use getentropy on macOS | Nicholas Tay | 1 | -3/+3 | |
2022-01-10 | Switch to getentropy C api (to port to macOS) | Nicholas Tay | 1 | -3/+2 | |
2022-01-10 | Fix tabs -> spaces | Nicholas Tay | 1 | -2/+2 | |
2022-01-05 | astyle + additional comments (+ to c89 style) | Nicholas Tay | 1 | -10/+22 | |
https://gist.github.com/nicholastay/9eb6a455d6b17b810cd8e7bec2a5dfe7 | |||||
2021-12-03 | astyle K&R | Nicholas Tay | 1 | -75/+75 | |
2021-12-02 | Print error messages to stderr instead | Nicholas Tay | 1 | -3/+2 | |
2021-12-02 | Needless import of unistd on Linux | Nicholas Tay | 1 | -2/+4 | |
2021-12-02 | Dynamically allocate password instead of using VLA | Nicholas Tay | 1 | -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(). | |||||
2021-12-02 | More explicit custom grammar flag for free() | Nicholas Tay | 1 | -2/+4 | |
This also allows the program to be compiled with Clang. | |||||
2021-12-02 | CRLF -> LF | Nicholas Tay | 1 | -101/+101 | |
2021-12-02 | Less syscalls the better? Call getrandom() every generation | Nicholas Tay | 1 | -6/+3 | |
Seems to hang every few executions if we getrandom one big chunk. Probably not enough entropy? | |||||
2021-12-02 | Add better RNG for Linux | Nicholas Tay | 1 | -3/+19 | |
2021-12-01 | Fix VLA for password chars | Nicholas Tay | 1 | -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. | |||||
2021-12-01 | Add config file, refactor classes to be cleaner with macros | Nicholas Tay | 1 | -20/+8 | |
2021-12-01 | Missing string.h import | Nicholas Tay | 1 | -0/+1 | |
2021-12-01 | Take a single argument as a grammar | Nicholas Tay | 1 | -1/+6 | |
2021-12-01 | Take in triplet/specials/numbers arguments | Nicholas Tay | 1 | -2/+32 | |
2021-11-30 | Adjust seeding and compiler errors | Nicholas Tay | 1 | -9/+6 | |