Ruby encrypt and decrypt algorithm

Hi all,

Please give list encrypt and decrypt algorithms in ruby.

I have decrypt xml data, which encrypt with .Net, I know key value used
for encryption.

Thanks,
rider

Air [email protected] wrote in post #1009335:

Hi all,

Please give list encrypt and decrypt algorithms in ruby.

I have decrypt xml data, which encrypt with .Net, I know key value used
for encryption.

Ruby includes an implementation of OpenSSL so it should have a fairly
comprehensive list of encryption algorithms. The problem is that there
are a lot of combinations of how encryption algorithms can be applied so
having a list of them will probably not be very useful.

Instead you need to know exactly how the .Net application encrypted the
file. Just having the key is not enough information. This is something
you’ll need to know, or find out.

I have run into a very similar situation. Fortunately in my case I at
least knew that the data was encrypted using Triple-DES. Even knowing
that I was unable to decrypt the data without know exactly how the .Net
classes were applying the algorithm. Through trial-and-error I finally
found the right combination of padding technique, etc.

One thing you may find with the Microsoft encryption classes is that
they use some defaults that are not immediately apparent. Simply
creating an instance of their Cipher (or whatever) class will configure
itself in a particular way. The Java client I was using at the time did
not much such assumptions and had to be manually configured to match the
defaults from the .Net class.

.Net , they used Rijndael class. but i can’t able decrypt on ruby. i
tried crytp/rijndeal gem, but this is not decrypt more than 32 char
length.