As described in How do i retrieve data from a JVM renderized into a web page using C# code?, I am trying to write a C# Bot to simulate queries in this website.
The problem now, is with the “Cryptography” used on the return of the webrequest for the information.
The source code for their cryptography can be found here: http://pastebin.com/fdJZvXDG
The problem is that, since the code has no comments, is there any way I can:
- Figure out whats the
aiparameter used for constructing the class - Find the Key they are using for encrypt/decrypt the information returned on the request?
Any help is appreciated here, I’ve read that this DES is a sort of Encryption pattern in Java, but I’ve never seen it before. Is this class implementing this pattern of only the name of the class and the pattern are the same?
It is an implementation of the DES cipher. Java has a class built in which allows you to encrypt and decrypt data with DES. This website shows how to use the class.
It’s not a pattern, it’s an open and standardized cipher.
You mentioned you want to figure out the key they are using and based on the information you have given, it simply isn’t possible.
The
aiparameter looks like it’s used in the key expansion and to specify the initial key (a string) for the cipher. It seems to be a poorly implemented version and is likely incorrect; I wouldn’t expect the Java classes to be able to handle this variation of the cipher.