Skip to content
🔒 A CLI tool for easy cryptography
Ruby Shell
Branch: master
Clone or download
Latest commit 0e8fe8b Aug 18, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin Add hash lookup feature Aug 6, 2019
lib Releasing v0.2.0 Aug 6, 2019
scripts Don't know why these were deleted Oct 25, 2018
spec Add tests Oct 31, 2018
.editorconfig Add .editorconfig so I don't lose my mind Oct 21, 2018
.gitignore Add --std flag for piping data Oct 17, 2018
.rspec Initial commit Sep 19, 2018
.travis.yml Initial commit Sep 19, 2018
CODE_OF_CONDUCT.md Initial commit Sep 19, 2018
Gemfile Initial commit Sep 19, 2018
Gemfile.lock Add hash lookup feature Aug 6, 2019
LICENSE.txt Initial commit Sep 19, 2018
README.md Update README.md Aug 18, 2019
Rakefile Initial commit Sep 19, 2018
krypton.gemspec Add hash lookup feature Aug 6, 2019

README.md

Installation

You can install krypton as a standalone gem:

$ gem install krypton

Or you can install the periodic-cli gem:

$ gem install periodic-cli

Usage

All krypton functions use the same basic syntax: krypton [cmd] {[message/secret]{[key]}}

  • encrypt - Encrypt a string

      $ krypton encrypt "mymessage" "mykey" 
      mymessage => ckhJWXcyTE1leENLOWpBQzJWbElMdz09Cg==
    
  • decrypt - Decrypt a string

      $ krypton decrypt "ckhJWXcyTE1leENLOWpBQzJWbElMdz09Cg" "mykey" 
      ckhJWXcyTE1leENLOWpBQzJWbElMdz09Cg => mymessage
    
  • hash - Hash a string or piped data

      $ krypton hash "mymessage"
      mymessage => S3ONp9WM7/rCMeuUnvWDzp5dxbuSVsOV6bI5AJvRqCc=
    
      $ echo "mymessage" | krypton hash
      mymessage => S3ONp9WM7/rCMeuUnvWDzp5dxbuSVsOV6bI5AJvRqCc=
    
  • uuid - Generate a secure uuid

      $ krypton uuid
      b6ff36d2-3f7e-4077-8ba5-5066f0a205a5
    
  • totp - Generate a time-based one-time password

      $ krypton totp "myawesomesecret"
      myawesomesecret => 997820
    
  • lookup - Look up the cracked hash from hashes.org

      $ krypton lookup 5e884898da28047151d0e56f8dc6292773603d0d6aabbdd62a11ef721d1542d8
      
      Result found: 
      Hash: 5e884898da28047151d0e56f8dc6292773603d0d6aabbdd62a11ef721d1542d8
      Plaintext: password
      Algorithm: SHA256X1PLAIN
    

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/cbrnrd/krypton. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the Krypton project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

You can’t perform that action at this time.