in reply to Re: Convert Java to Perl -> Script attached
in thread Convert Java to Perl -> Script attached

Hey Roboticus, Thanks for the reply. 1. The java function is returning a String which represents an encoded / encrypted string. The encoding / encryption needs to be perfect to match a legacy system. 2. The Perl program returns a wrong value after trying to SHA the string, I believe. 3. Input data would just be "password"
  • Comment on Re^2: Convert Java to Perl -> Script attached

Replies are listed 'Best First'.
Re^3: Convert Java to Perl -> Script attached
by Anonymous Monk on Mar 03, 2009 at 12:41 UTC
    What does java myprogram password return? Show the value. Also show what perl myprogram password returns. Wrong value isn't good enough.
Re^3: Convert Java to Perl -> Script attached
by roboticus (Chancellor) on Mar 03, 2009 at 13:11 UTC
    smoky:

    I meant the actual values returned by both the java and perl programs. I can't tell if a change returns the wrong value if I don't know what the right value is. Also, if I were to download your perl program and get it running, I can't tell if it matches the output of the Java program unless I go through the hassle of installing java and getting the java sample to run. By leaving out the java results, you greatly reduce the number of people who are going to bother to try to assist.

    Also, you can often get a hint about a problem based on the data itself without running the program. Some characters couldn't appear in a Base-64 encoding, for example.

    ...roboticus