이것은 mysql에서의 set password('') 와 비슷한 기능이다.
하지만 오라클은 DES 알고리즘으로 문자열을 암호화한다.


Decrypting Oracle's DBMS_OBFUSCATION_TOOLKIT
By
Steve Callan

To secure sensitive data, Oracle provides developers with the DBMS_OBFUSCATION_TOOLKIT. This supplied PL/SQL package, available in both the Standard and Enterprise editions, is the industrial strength version of the DBMS_RANDOM package. Upon reading Oracle's documentation about this package, you will need a decoder just to keep track of all the acronyms and to decrypt the errors in Oracle's sample code. However, once you see how easy it is to use, you will be able to take Oracle's code example and modify it for your own use.

If you have never worked or dealt with encryption, Oracle's documentation provides a short summary of encryption principles in the Oracle9i Supplied PL/SQL Packages and Types Reference documentation. Like many other things in Oracle, just because you can do something does not mean you should do it. Encryption is one of those features best used when used appropriately. What is not pointed out is this truism: what is created by man can be broken by man. How does this apply to Oracle's obfuscation toolkit? Let's look at the one of the Data Encryption Standard options.

Oracle states that the "Triple DES (3DES) is a far stronger cipher than DES; the resulting ciphertext (encrypted data) is much harder to break using an exhaustive search: 2**112 or 2**168 attempts instead of 2**56 attempts." What is the significance of these numbers? Suppose you build a computer capable of making 1000 attempts each second. How long would it take to exhaust 2 to the 56 (256) attempts? Before you get your calculator, take a wild guess. Did you guess something close to just over two million years? A very significant obstacle in launching a brute force attack against encrypted data is time. If you are dealing with 2 to the 168 attempts, your next biggest obstacle, after time itself, is the sun, because it will go supernova many billions of years before you'll finish.

Unlike port assignments, when it comes to encryption, the standards are much clearer, and in fact, are promulgated by the government. You can read more about the standards (plus get some background on encryption) at http://www.itl.nist.gov/fipspubs/fip46-2.htm.

Oracle's documentation

Posted by ilus


,