api calls using ruby scripting

R

Raj Kumar

Hi,
I am trying to write some automation script using ruby for some of the
api calls. There is api sign which is in md5 hash format. How can i
handle this case using ruby.
 
J

James Gray

I am trying to write some automation script using ruby for some of the
api calls. There is api sign which is in md5 hash format. How can i
handle this case using ruby.

#!/usr/bin/env ruby -wKU

require "md5"

data = "James Edward Gray II"
puts MD5.md5(data)

__END__

Hope that helps.

James Edward Gray II
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,264
Messages
2,571,065
Members
48,770
Latest member
ElysaD

Latest Threads

Top