Project

veronica

0.0
Low commit activity in last 3 years
No release in over a year
Basically just a wrapper around existing hashing/encrypting methods.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.2.10
~> 2.18.0, >= 2.18.0
~> 0.11
~> 3.0
~> 0.15
~> 0.1.0
~> 13.0
 Project Readme

Veronica

Build Status

A gem to make it easier for sardonic young detectives to keep secrets.

Basically just a wrapper around existing hashing/encrypting methods.

Not really actively maintained, use at your own risk. May spontaneously accuse trusted community figures of murder, or simply not work.

Installation

Add this line to your application's Gemfile:

gem 'veronica'

And then execute:

$ bundle

Or install it yourself as:

$ gem install veronica

Usage

Once you've included it in a project, you can use it like so:

Veronica.generate_sha2(digest_bits: 256, string: "I've got a secret, a good one.")`
=> "61cb3c4118402462e3055033176a2222d1a7b8e88db775bbdccd5b05b3cc7f0e"

You can also pass in an encoding_format:

Veronica.generate_sha2(digest_bits: 256, string: "Don't forget about me, Veronica.", encoding_format: "base64digest")
=> "wyWcnqQlnMtEdgR23nOeGoDm3Z5wetAj5FHoIqXj2d4="

Valid digest_bits settings for SHA2 are: 256, 384, 512

Valid encoding_format settings for SHA2 are "hexdigest", "base64digest", and just "digest".

Development

After checking out the repo, run bin/setup to install dependencies. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. Feel free to submit issues as well as PRs.

Contributing

Bug reports and pull requests are welcome on GitHub. Please respect the Code of Conduct.