If your requirement is as simple as you stated, you can use the UTL_RAW.CAST_TO_RAW function:
INSERT INTO TABLE_NAME (LOGIN_PWD) VALUES (UTL_RAW.CAST_TO_RAW('hashed password'));
Demo version of SQL Fiddle .
Using, for example, hashing a simple hashed string using Md5, which is 6a25a2b265d917ea91447daa81b2506d , the raw value stored in the table is:
SELECT DUMP(LOGIN_PWD) FROM TABLE_NAME; DUMP(LOGIN_PWD)
Which corresponds to what I get from getBytes() , on the same hashed value in Java.
If you want to return it to text for any reason, you can use UTL_RAW.CAST_TO_VARCHAR2 :
SELECT UTL_RAW.CAST_TO_VARCHAR2 (LOGIN_PWD) FROM TABLE_NAME;
UTL_RAW.CAST_TO_VARCHAR2(LOGIN_PWD) ----------------------------------- 6a25a2b265d917ea91447daa81b2506d
source share