alexandria-plsql-utils/extras/hash_util_pkg_demo.sql
2017-03-22 08:07:56 +07:00

15 lines
1.3 KiB
SQL

select rawtohex(hash_util_pkg.sha1(utl_raw.cast_to_raw(''))) from dual;
select rawtohex(hash_util_pkg.sha1(utl_raw.cast_to_raw('The quick brown fox jumps over the lazy dog'))) from dual;
select rawtohex(hash_util_pkg.sha224(utl_raw.cast_to_raw(''))) from dual;
select rawtohex(hash_util_pkg.sha224(utl_raw.cast_to_raw('The quick brown fox jumps over the lazy dog'))) from dual;
select rawtohex(hash_util_pkg.sha256(utl_raw.cast_to_raw(''))) from dual;
select rawtohex(hash_util_pkg.sha256(utl_raw.cast_to_raw('The quick brown fox jumps over the lazy dog'))) from dual;
select rawtohex(hash_util_pkg.sha384(utl_raw.cast_to_raw(''))) from dual;
select rawtohex(hash_util_pkg.sha384(utl_raw.cast_to_raw('The quick brown fox jumps over the lazy dog'))) from dual;
select rawtohex(hash_util_pkg.sha512(utl_raw.cast_to_raw(''))) from dual;
select rawtohex(hash_util_pkg.sha512(utl_raw.cast_to_raw('The quick brown fox jumps over the lazy dog'))) from dual;
select rawtohex(hash_util_pkg.sha512_224(utl_raw.cast_to_raw(''))) from dual;
select rawtohex(hash_util_pkg.sha512_224(utl_raw.cast_to_raw('The quick brown fox jumps over the lazy dog'))) from dual;
select rawtohex(hash_util_pkg.sha512_256(utl_raw.cast_to_raw(''))) from dual;
select rawtohex(hash_util_pkg.sha512_256(utl_raw.cast_to_raw('The quick brown fox jumps over the lazy dog'))) from dual;