No commit activity in last 3 years
No release in over 3 years
Used by OpenNeo Auth servers to sign messages, and OpenNeo Auth clients to confirm signatures.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

Openneo Auth Signatory

This is a Ruby gem that, given a message and a secret, produces a signature.

Openneo auth servers use this gem to sign messages they send to auth clients, and auth clients use this gem to sign the message they receive to make sure that they get the same signature. This confirms that the authentication message was sent by someone who knows the secret (in this case, the auth server), rather than some hacker trying to send his or her own fake message.

secret = '5ebe2294ecd0e0f08eab7690d2a6ee69'
signatory = Openneo::Auth::Signatory.new(secret)

message = {:foo => 1, :bar => 2}
signature = signatory.sign(message)

puts signature # => 22dc5ff40bcf9ece92f8b6cf6542b05750aea9379d27e048b32ec02a65e33641

Copyright (c) 2010 Matchu. See LICENSE for details.