Generate Scrypt keys from the CLI

lotus f4368f9a41 Refined range checks for command line arguments, completed cases for different arg combinations. Increased default values. Updated the README file. Added library for converting to base64. 3 weeks ago
include f4368f9a41 Refined range checks for command line arguments, completed cases for different arg combinations. Increased default values. Updated the README file. Added library for converting to base64. 3 weeks ago
tests 30e8d2d5f2 Expanded option flags, added more runtime checks, modified tests, updated README 3 weeks ago
.gitignore 976b38f1f4 initial commit 3 weeks ago
.travis.yml 976b38f1f4 initial commit 3 weeks ago
LICENSE.md 976b38f1f4 initial commit 3 weeks ago
README.md f4368f9a41 Refined range checks for command line arguments, completed cases for different arg combinations. Increased default values. Updated the README file. Added library for converting to base64. 3 weeks ago
clang_complete 976b38f1f4 initial commit 3 weeks ago
compile_commands.json 30e8d2d5f2 Expanded option flags, added more runtime checks, modified tests, updated README 3 weeks ago
main.cpp f4368f9a41 Refined range checks for command line arguments, completed cases for different arg combinations. Increased default values. Updated the README file. Added library for converting to base64. 3 weeks ago
makefile 976b38f1f4 initial commit 3 weeks ago
scry.1 f4368f9a41 Refined range checks for command line arguments, completed cases for different arg combinations. Increased default values. Updated the README file. Added library for converting to base64. 3 weeks ago
scry.cpp f4368f9a41 Refined range checks for command line arguments, completed cases for different arg combinations. Increased default values. Updated the README file. Added library for converting to base64. 3 weeks ago

README.md

License Build Status

This tool provides a quick way do generate a Scrypt key from the shell. The normal scrypt cli tool provided here will encrypt and decrypt files for you interactively. But, if you simply want it to give you a key, it cannot. This tool outputs the resulting key in MCF format

Dependencies

  • libscrypt-dev
  • C++14 capable compiler (e.g. GCC 4.9 / Clang 3.4 or greater )
  • POSIX make

Installation

Simply run:

git clone https://git.zerohack.xyz:443/lotus/scry.git
cd scry
make && sudo make install

# if you want to build a debug version
make debug

# if you want to build an optimized version
make opt

# to build and run tests
make test && ./test_scry

Usage

# echo in your input
$ echo "SuperSecretPassword" | scry

# enter interactively
$ scry
SuperSecretPassword [enter]

Flags:
-s      # provide your own salt (aka nonce)
-n      # cpu/memory cost (default 8192)
-r      # block size (default 8)
-p      # parallelism (default 2)
-h      # shows this help info
-v      # shows the version info

Notes

This tool only reads input from stdin in order to avoid exposing sensitive information in the process list as arguments.

License / Disclaimer

This project is licensed under the ISC license. (See LICENSE.md)