the java program (does not hash as python, but I think python also got som bug sneaked in)

Signed-off-by: Mattias Andrée <maandree@operamail.com>