Is Oracle's ORA_HASH “random”?

蹲街弑〆低调 提交于 2019-12-07 07:23:35

问题


Ora_hash is deterministic in that the keeping the input and seed constant will produce a definite output.

But, for any seed (including the default), will the output of an ora_hash necessarily have the property that:

"No method exists that can be used to predict what the result of an ORA_HASH will be with any level of success higher than purely random guessing?"


回答1:


Probably not, no. ORA_HASH is not designed as a particularly robust hashing algorithm-- it's certainly not something you would use as part of a cryptography library, for example, you'd use the DBMS_CRYPTO.HASH choosing an appropriate algorithm and options. ORA_HASH is designed to distribute items into buckets effectively (i.e. what happens when you hash partition a table) and to be a relatively lightweight hashing algorithm. It is not designed to be secure from attack.



来源:https://stackoverflow.com/questions/18903130/is-oracles-ora-hash-random

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!