0.0
No commit activity in last 3 years
No release in over 3 years
Sign your strings!
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

simple_signer

Gem Version

simple_signer is a ruby gem to sign strings, it can be used to generate signatures to API requests.

install

$ gem install simple_signer  

use

require 'simple_signer'  


# sign

signature = SimpleSigner.sign :secret_key => 'your_secret_key', :string => 'your_string_to_be_signed'  

puts signature
=> "VKb6rsLKHrCjerJZuA1SM1LccGE="  
  
  
# escape  
  
escaped_signature = SimpleSigner.escape "VKb6rsLKHrCjerJZuA1SM1LccGE="  
  
puts escaped_signature  
=> "VKb6rsLKHrCjerJZuA1SM1LccGE%3D"  
  
  
# unescape  
  
unescaped_signature = SimpleSigner.unescape "VKb6rsLKHrCjerJZuA1SM1LccGE%3D"  
  
puts unescaped_signature  
=> "VKb6rsLKHrCjerJZuA1SM1LccGE="  

test

$ rake test