What I need is some help from someone who can convert an algorithm written in Ruby into PHP.
The algorithm is below:
params = Hash.new
params[:key] = original_params[:key]
params[:play] = original_params[:play]
params[:score] = final_score
keys_and_values = params.to_a.map {|v|[v.first.to_s, v.last.to_s]}.sort
keys_and_values << ['authorization_key', self.secret_authorization_key]
Digest::SHA1.hexdigest(keys_and_values.map {|kv|"{kv.first}=#{CGI.escape(kv.last)}"}.join('&'))
I would be very appreciative of the help. I understand that this wasn't the purpose for this forum but I figured it couldn't hurt to ask you all...
Thanks for any help you can give...