WIP library for super-simple symmetric encryption in Crystal
WORK IN PROGRESS: Do not use Crypher::Encrypter
or Crypher::Decryptor
yet! Only one-shot String and Slice encryption works at this stage
-
Add the dependency to your
shard.yml
:dependencies: crypher: github: dscottboggs/crypher
-
Run
shards install
require "crypher"
context = Crypher.new
encrypted_string = "some super secret text".encrypt context
encrypted_string.decrypt context # => "some super secret text"
# Using Crypher.global context
encrypted = "some secret text".encrypt
encrypted.decrypt # => "some secret text"
- Fork it (https://github.com/dscottboggs/crypher/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
- D. Scott Boggs - creator and maintainer