title: Using Oracle STANDARD_HASH, reproduce the hash in JAVA
body: <p>I'm using the STANDARD_HASH('input','SHA256') function within Oracle to populate records with their relative hash values.</p>
  
  <p>This can be reproduced by connecting to Oracle doing:</p>
  
  <pre><code>select STANDARD_HASH('1234','SHA256') 
  from dual
  </code></pre>
  
  <pre class="lang-none prettyprint-override"><code>Table X    
  Column 1, Column 1-hashed    
  1234, sha512hashresult    
  1234, sha512hashresult    
  1234, sha512hashresult    
  1234, sha512hashresult    
  </code></pre>
  
  <p><strong>Now whats the question;</strong> 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? </p>
  
  <p>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?</p>
  
  <p><strong>Background:</strong> 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.</p>
  
  <p><strong>What i don't want</strong>; People who tell me how I can achieve it in a different way, I need it exactly this way otherwise save your time</p>