Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Create an unique countable hash

Filip HuysmansJun 24 2024

Hi everyone,

DB Version 19c

We receive information through an ORDS REST API into our database. We keep track on every request done by the users. We can not keep information on the user in our database, but we do need to be able to count the number of unique users visited our website. From the REST API request we take some values like firstname, lastname and company. We hash this information and only keep this hash in our database. Then we count the number of unique hashes.

We use the following method to hash our values:

sys.dbms_crypto.hash(utl_raw.cast_to_raw(p_text) , dbms_crypto.HASH_SH512);

Is this a good way of performing our unique count operation?

Is this generated hash guaranteed the same for the same p_text values? All of the time over time?

Thx for your insight and ideas.

Filip

This post has been answered by BluShadow on Jun 24 2024
Jump to Answer
Comments
Post Details
Added on Jun 24 2024
9 comments
246 views