views:

223

answers:

2

Hi

i'm looking for ways to decrypt a string in cobol that was encrypted in .net using RijndaelManaged. I have control of the algorithm so it doesn't need to be Rijdnael, but i just need to ensure that the data is encrypted.

Any help advice is appreciated.

Thanks Sean

[Edit] - the data is encypted in a c# windows service that i've created. The data must be decrypted by a cobol system that will retreive the data from the windows service via tcpip. The encryption algorithm can be changed (in the windows service) and doesn't have to be Rijndael as long as cobol can decrypt it.

A: 

What do you mean by "it doesn't need to be Rijdnael"? If you have Rijndael encrypted message then you need to impement RIjndael to decrypt it. If you turn Rijndael encryption off then you will not need it, but the message will be not encrypted.

stroncium
What's wrong with this answer?
stroncium
I didn't down-vote you, but it appears that you didn't understand his question and that might be why the down-vote. Also, you don't appear to even attempt to answer his question, which might also be the reason for the down-vote. I'd say either of those things might lead you in the right direction to find out what's "wrong" with your answer. Good luck!
mrduclaw
Well I checked it again... RijndaelManaged is used for Rijndael encryption. So the only possible way to decrypt message encrypted by it is to get Rijndael implementation(as I said earlier)
stroncium
Sorry, the way I read OP's question is that he's currently trying to encrypt it with Rijndael, but since he controls that algorithm he can switch it (so that the data is encrypted with a different algorithm) to something that plays nicer with COBOL. I did not mean that you can encrypt something using DES and decrypt it with AES. :p
mrduclaw
@mrduclaw is correct. I can change to another algorithm that cobol can work with - i'm not restricted to Rijndael, it was just my first choice.
Sean Rock
@Sean Rock, yeah sorry, I'm not at all a COBOL guy. Wish I could help though.
mrduclaw
A: 

This might be what you are looking for: Redvers Encryption Device. It is a third party COBOL encryption package using the Rijdnael algroithm. I have never used this package so cannot comment on whether it is all the vendor cracks it up to be.

Depending on your implementation of COBOL, you may be able to call subroutines written in other languages to perform encyrption services. For example, Enterprise COBOL on z/os can call services written in just about any other language supported in the z/os environment.

Good luck.

NealB