You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
shuffle3/README.md

42 lines
1.2 KiB

4 years ago
# `shuffle3-lean` - Improved 3 stage byte shuffler
4 years ago
Deterministically and reversably shuffle a file's bytes around.
## Shuffling
Shuffle a file in place
``` shell
$ shuffle3 -s file
```
## Unshuffling
Unshuffle a file in place
``` shell
$ shuffle3 -u file
```
## Other options
4 years ago
Run with `-h` for more options.
4 years ago
4 years ago
# Building
Run `make` to build the normal binary. It will output to `shuffle3-release`.
## Release target
4 years ago
The `release` (default) target uses the variables `RELEASE_CFLAGS`, `RELEASE_CXXFLAGS` and `RELEASE_LDFLAGS` to specify opitimisations, as well as the `OPT_FLAGS` variable. These can be set by you if you wish.
4 years ago
### Note
4 years ago
The default `OPT_FLAGS` contains the flag `-march=native`. This may be underisable for you, in which case set the variable or modify the makefile to remove it.
4 years ago
## Debug target
4 years ago
To build with debug information, run `make debug`. Extra debug flags can be provided with the `DEBUG_CFLAGS`, `DEBUG_CXXFLAGS` and `DEBUG_LDFLAGS` variables which have default values in the Makefile.
4 years ago
The build and unstripped binary will be `shuffle3-debug`.
## Notes
Before switching between `release` and `debug` targets, remember to run `make clean`.
4 years ago
To disable stripping of release build binaries, run with `make STRIP=: release`
4 years ago
4 years ago
# License
GPL'd with <3