In 12c you can use STANDARD_HASH . It is available by default, does not require any PL / SQL objects or hard-coded values, and is not deprecated.
SQL> select standard_hash('Finally, an easy way to do this.', 'MD5') md5 2 from dual; MD5 -------------------------------- 456E4D024B4BB704169E21DEB895B0E2
Jon heller
source share