Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
parse encrypted tokens in the opentoken format
Ruby

This branch is 4 commits ahead, 11 commits behind socialcast:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
.document
.gitignore
CONTRIBUTORS.txt
Gemfile
LICENSE.txt
README.md
Rakefile
opentoken-newrelic-rails23.gemspec

README.md

opentoken

Parse encrypted opentoken properties

see http://www.pingidentity.com/opentoken

Usage

# configure decryption with shared key
OpenToken.password = 'shared_secret_to_decrypt'

# decrypt opentoken into hash of attributes
attributes = OpenToken.decode 'opentoken-hashed-string'

# encrypt opentoken from hash of attributes
attributes = { 'subject' => 'foo', 'bar' => 'bak' }
token = OpenToken.encode attributes, OpenToken::Cipher::AES_128_CBC

Contributing

  • Fork the project
  • Fix the issue
  • Add tests
  • Send me a pull request. Bonus points for topic branches.

see CONTRIBUTORS.txt for complete list of contributors.

Copyright

Copyright (c) 2011 Socialcast Inc. See LICENSE.txt for details.

Something went wrong with that request. Please try again.