Skip to content
This repository was archived by the owner on Oct 5, 2023. It is now read-only.

socialcast/opentoken

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Sean Walbran
Mar 20, 2014
65b9cc7 · Mar 20, 2014

History

63 Commits
Mar 20, 2014
Mar 20, 2014
Apr 7, 2010
Jan 18, 2011
Mar 20, 2014
Mar 20, 2014
Oct 13, 2011
Oct 13, 2011
Apr 21, 2011
Mar 20, 2014
Mar 20, 2014
Mar 20, 2014

Repository files navigation

Build Status

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.