How to decrypt .net API response in rails app ?

36 views
Skip to first unread message

Fahim Patel

unread,
Feb 3, 2014, 1:23:24 AM2/3/14
to rubyonra...@googlegroups.com
Hello folks,

I am using .net API and response of API is in encrypted form. Please let me know how should I proceed to do decryption.

Thanks! in advance.

Best Regards
Fahim Babar Patel




Arun kant sharma

unread,
Feb 3, 2014, 6:02:15 AM2/3/14
to rubyonra...@googlegroups.com
If you have decryption keys then write an helper function using bcrypt-ruby lib's general crypto algorithms. Also don't store keys in source code but in environment.

Best
Arun

Frederick Cheung

unread,
Feb 3, 2014, 7:20:16 AM2/3/14
to rubyonra...@googlegroups.com


On Monday, February 3, 2014 6:23:24 AM UTC, Fahim Patel wrote:
Hello folks,

I am using .net API and response of API is in encrypted form. Please let me know how should I proceed to do decryption.


Well the specifics will depend on how the response was encrypted, but ruby's openssl library contains most of the raw crypto stuff you're likely to need. There are also some higher level libraries that are supposed to be easier to work with (eg ezcrypto) although I'm not very familiar with these.

Fred

Fahim Patel

unread,
Feb 3, 2014, 10:08:25 AM2/3/14
to rubyonra...@googlegroups.com
Thanks all for reply.

API team is not going to provide any information but they said following things will resolve our issue:-
1. Create an encryption DLL and add it to the SoapExtension section
2.   Tell clients to purchase SSL certificate otherwise the data that is being transferred will be ‘in the clear’
3.      
Create your own SSL certificate and install on client’s computer


SSL certificate sound good. I am using "savon 2".
Reply all
Reply to author
Forward
0 new messages