Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix grammar caps generation on new grammars | Nicholas Tay | 2022-01-14 | 1 | -6/+5 |
| | |||||
* | Add --help itself to help | Nicholas Tay | 2022-01-14 | 1 | -1/+2 |
| | |||||
* | Fix direct grammar string passing invalid free | Nicholas Tay | 2022-01-14 | 1 | -1/+2 |
| | |||||
* | Add some more default grammar combos | Nicholas Tay | 2022-01-14 | 1 | -2/+17 |
| | |||||
* | Add grammar mappings to help message | Nicholas Tay | 2022-01-14 | 1 | -1/+5 |
| | | | | | These should be quite useful since I forget what the mappings are sometimes, and maybe want to make a custom grammar. | ||||
* | Split out classes into an array of custom struct | Nicholas Tay | 2022-01-14 | 1 | -11/+24 |
| | | | | | Would allow us to access in --help. Also just seems like a nicer way to store in case we need to extend it. | ||||
* | Add help option | Nicholas Tay | 2022-01-13 | 1 | -0/+13 |
| | |||||
* | Fix + add error message | Nicholas Tay | 2022-01-13 | 1 | -1/+2 |
| | |||||
* | Allow 0 triplets | Nicholas Tay | 2022-01-13 | 1 | -8/+5 |
| | |||||
* | Use static buffers for regular password generation | Nicholas Tay | 2022-01-13 | 2 | -16/+25 |
| | | | | | This is probably a micro-optimisation, but since that is partly the point of this random C project, let's do it :) | ||||
* | Fix generation for number params (forgot grammar_size) | Nicholas Tay | 2022-01-13 | 1 | -5/+5 |
| | |||||
* | Run astyle | Nicholas Tay | 2022-01-11 | 1 | -2/+2 |
| | |||||
* | .gitignore fix line endings | Nicholas Tay | 2022-01-11 | 1 | -55/+55 |
| | |||||
* | Fix potential invalid free on password ptr | Nicholas Tay | 2022-01-11 | 1 | -2/+3 |
| | |||||
* | Add build instructions for Windows in readme | Nicholas Tay | 2022-01-11 | 1 | -1/+15 |
| | |||||
* | Add wincrypt support for RNG on Windows | Nicholas Tay | 2022-01-11 | 1 | -25/+49 |
| | |||||
* | Enforce unsigned int for RNG generation | Nicholas Tay | 2022-01-11 | 1 | -2/+2 |
| | | | | Need this for it to work properly, I think with the mod | ||||
* | Split out logic into nice functions | Nicholas Tay | 2022-01-11 | 1 | -49/+71 |
| | |||||
* | BSD support for getentropy() | Nicholas Tay | 2022-01-11 | 1 | -3/+14 |
| | |||||
* | Reorganise/remove unneeded includes | Nicholas Tay | 2022-01-11 | 1 | -1/+4 |
| | |||||
* | Use getentropy on macOS | Nicholas Tay | 2022-01-11 | 1 | -3/+3 |
| | |||||
* | Switch to getentropy C api (to port to macOS) | Nicholas Tay | 2022-01-10 | 1 | -3/+2 |
| | |||||
* | Fix tabs -> spaces | Nicholas Tay | 2022-01-10 | 1 | -2/+2 |
| | |||||
* | Reindent config.h | Nicholas Tay | 2022-01-06 | 1 | -7/+9 |
| | |||||
* | astyle + additional comments (+ to c89 style) | Nicholas Tay | 2022-01-05 | 1 | -10/+22 |
| | | | | https://gist.github.com/nicholastay/9eb6a455d6b17b810cd8e7bec2a5dfe7 | ||||
* | astyle K&R | Nicholas Tay | 2021-12-03 | 1 | -75/+75 |
| | |||||
* | Print error messages to stderr instead | Nicholas Tay | 2021-12-02 | 1 | -3/+2 |
| | |||||
* | Needless import of unistd on Linux | Nicholas Tay | 2021-12-02 | 1 | -2/+4 |
| | |||||
* | Dynamically allocate password instead of using VLA | Nicholas Tay | 2021-12-02 | 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(). | ||||
* | More explicit custom grammar flag for free() | Nicholas Tay | 2021-12-02 | 1 | -2/+4 |
| | | | | This also allows the program to be compiled with Clang. | ||||
* | CRLF -> LF | Nicholas Tay | 2021-12-02 | 4 | -136/+136 |
| | |||||
* | Less syscalls the better? Call getrandom() every generation | Nicholas Tay | 2021-12-02 | 1 | -6/+3 |
| | | | | | Seems to hang every few executions if we getrandom one big chunk. Probably not enough entropy? | ||||
* | Enforce C99 | Nicholas Tay | 2021-12-02 | 1 | -1/+1 |
| | |||||
* | Add better RNG for Linux | Nicholas Tay | 2021-12-02 | 1 | -3/+19 |
| | |||||
* | Automatic commit of package [passgen] release [0.1.1-1]. | Nicholas Tay | 2021-12-01 | 2 | -4/+4 |
| | | | | | | Created by command: /usr/bin/tito tag | ||||
* | Ignore executable in gitignore | Nicholas Tay | 2021-12-01 | 1 | -1/+4 |
| | |||||
* | Fix VLA for password chars | Nicholas Tay | 2021-12-01 | 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. | ||||
* | Automatic commit of package [passgen] release [0.1.0-2]. | Nicholas Tay | 2021-12-01 | 2 | -2/+5 |
| | | | | | | Created by command: /usr/bin/tito tag --keep-version | ||||
* | RPM spec: add gcc, make to BuildRequires | Nicholas Tay | 2021-12-01 | 1 | -0/+3 |
| | |||||
* | Automatic commit of package [passgen] release [0.1.0-1]. | Nicholas Tay | 2021-12-01 | 2 | -2/+6 |
| | | | | | | Created by command: /usr/bin/tito tag --use-version 0.1.0 | ||||
* | Add in RPM spec (tested on Fedora) | Nicholas Tay | 2021-12-01 | 1 | -0/+34 |
| | |||||
* | Initialized to use tito. | Nicholas Tay | 2021-12-01 | 2 | -0/+8 |
| | |||||
* | Improve Makefile with changeable name + install function | Nicholas Tay | 2021-12-01 | 1 | -5/+12 |
| | |||||
* | Add LICENCE | Nicholas Tay | 2021-12-01 | 1 | -0/+17 |
| | |||||
* | Add config file, refactor classes to be cleaner with macros | Nicholas Tay | 2021-12-01 | 2 | -20/+18 |
| | |||||
* | Missing string.h import | Nicholas Tay | 2021-12-01 | 1 | -0/+1 |
| | |||||
* | Take a single argument as a grammar | Nicholas Tay | 2021-12-01 | 1 | -1/+6 |
| | |||||
* | Add readme | Nicholas Tay | 2021-12-01 | 1 | -0/+7 |
| | |||||
* | Take in triplet/specials/numbers arguments | Nicholas Tay | 2021-12-01 | 1 | -2/+32 |
| | |||||
* | Adjust seeding and compiler errors | Nicholas Tay | 2021-11-30 | 1 | -9/+6 |
| |