Attached is a C++ project used to generate unique strings and some supporting data. It makes uses of random number generation, CRC32 and SHA256 hashing.
I need this C++ project ported to a java class and a jsp for testing the class. The class should be called SaDataGen and should consist of the following methods:
1) string[] GenStrings(X, Y);
This generates X random strings of Y length. Strings should consist of characters A-Z 0-9 only. For details on generating this data see [login to view URL] in the attached. Note: [login to view URL] contains duplicates checking for supporting data values. You need not implement this, you need only insure that the strings you generate are unique. The max number of strings should be a constant in the code set to 1000, and the max length a constant set to 55.
2) int GenRaw(X, len)
Accepts string X of length len and generates a numeric value from it. This should be a direct port of the GenRaw method data from the [login to view URL] file included here.
3) int GenConf(X, len)
Accepts string X of length len and generates a numeric value from it. This should be a direct port of the GenConf method data from the [login to view URL] file included here.
This code needs to be pure java, no JNI please. The testing JSP should be a form that accepts a number of strings to generate and a length of the strings, it should then output an HTML table of:
String N - GenRaw Result for String N - GenConf Result for String N
Using the classes methods for each generated string. So example output would be:
A2BC2DE2FG2HI2JK2LMO12323 - 12345678 - 12345678
The data generated by this class must match the data generated by the C++ classes methods exactly! The C++ application leverages Crypto++ which can be freely downloaded at: [[login to view URL]][1]. You will need an alternative for use with Java.
## Deliverables
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):
a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.
b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.
3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).
## Platform
Java/JSP
Enterprise RedHat Linux