Sha256: 0f2b39b06fc8e74b78f5dddf9b0f1d621fdcc46e74895e97f2c4c19046260a0e

Contents?: true

Size: 1.18 KB

Versions: 4

Compression:

Stored size: 1.18 KB

Contents

# Auric::Vault::Door

TODO: Write a gem description

## Installation

Add this line to your application's Gemfile:

    gem 'auric-vault-door'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install auric-vault-door

## Usage

It now expects a hash or arguments when being created:
args = {secret: 'shared_secret_goes_here', mtid: 'merchant_id', config_id: 'config_id', segment: '123'} #optional: production: true, defaults to false

@door = Auric::Vault::Door.new(args)

@door.encrypt('string_to_encrypt')
=> 'dpFAl7BY260IWzFxxxx'

@door.decrypt('dpFAl7BY260IWzFxxxx')
=> 'string_to_encrypt'

If either method fails, checking error should return a string about what went wrong:

@door.error
=> "VLT-112: This method is missing the following fields. Method: decrypt [token]"

TODO: Only encrypt and decrypt methods are currently implemented.
Better error error handling
Tests.

## Contributing

1. Fork it ( https://github.com/[my-github-username]/auric-vault-door/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
auric-vault-door-0.0.6 README.md
auric-vault-door-0.0.5 README.md
auric-vault-door-0.0.3 README.md
auric-vault-door-0.0.2 README.md