Skip to content
This repository has been archived by the owner on Apr 11, 2019. It is now read-only.

newrelic/opentoken-newrelic-rails23

 
 

Repository files navigation

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.

About

parse encrypted tokens in the opentoken format

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%