Siphre is a collection of ciphers ranging from basic to advanced for securing information.
Disclaimer: These ciphers are here for you to learn about cryptography and potentially create your own ciphers for your own security. I do not claim any responsibility if any information is compromised even when encoded by one of these ciphers.
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install siphre
Siphre is simple. Say for example you wanted to encode
string using the
Siphre::Basic.encode 'string' => 'some-encoded-string'
To check if a siphred string is equal to a plaintext string.
Siphre::Basic.equal 'some-encoded-string', 'string' => true
To decode a string, you would use a similar method.
Siphre::Basic.decode 'some-encoded-string' => 'string'
Note: while decoding is intentionally required as part of the library, it is highly recommended that you not use it in any production code as it may create a potential security breach.
You may also pass options to the encode method which are defined in the documentation for each siphre.
- Fork it
- Create your feature branch (
git checkout -b cool-new-siphre)
- Commit your changes (
git commit -am 'Added some siphre')
- Push to the branch (
git push origin cool-new-siphre)
- Create new Pull Request