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"