I'm using the STANDARD_HASH('input','SHA256') function within Oracle to populate records with their relative hash values.
This can be reproduced by connecting to Oracle doing:
select STANDARD_HASH('1234','SHA256')
from dual
Table X
Column 1, Column 1-hashed
1234, sha512hashresult
1234, sha512hashresult
1234, sha512hashresult
1234, sha512hashresult
Now whats the question; What do I have to do in JAVA in order to reproduce exactly the hash values which are produced by STANDARD_HASH in Oracle? Does anyone have experience with this?
Note; For some reason there is no seed on the recommended Oracle hash function. Does anyone know the Default seed or how to figure this out?
Background: What do i want to do? Populate the table within Oracle with Oracle-Default-Tools and use a Java program to receive the input, hash it and select the correct record in the table.
What i don't want; People who tell me how I can achieve it in a different way, I need it exactly this way otherwise save your time