Oracle8i Supplied PL/SQL Packages Reference Release 2 (8.1.6) Part Number A76936-01 |
|
DBMS_OBFUSCATION_TOOLKIT , 2 of 3
The DESEncrypt procedure generates the encrypted form of the input data. An example of the DESEncrypt syntax appears at the end of this chapter.
Table 23-1 and Table 23-2 list the parameters for the DESEncrypt syntax, their modes, types, and descriptions.
Parameter Name | Mode | Type | Description |
---|---|---|---|
input |
IN |
RAW |
data to be encrypted |
key |
IN |
RAW |
encryption key |
encrypted_data |
OUT |
RAW |
encrypted data |
Parameter Name | Mode | Type | Description |
---|---|---|---|
input_string |
IN |
VARCHAR2 |
string to be encrypted |
key_string |
IN |
VARCHAR2 |
encryption key string |
encrypted_string |
OUT |
VARCHAR2 |
encrypted string |
If the input data or key given to the PL/SQL DESEncrypt function is empty, then Oracle raises ORA error 28231 "Invalid input to Obfuscation toolkit".
If the input data given to the DESEncrypt function is not a multiple of 8 bytes, Oracle raises ORA error 28232 "Invalid input size for Obfuscation toolkit".
If the user tries to double encrypt data using the DESEncrypt function, then Oracle raises ORA error 28233 "Double encryption not supported by DESEncrypt in Obfuscation toolkit".
The DESEncryption procedure has two restrictions. The first is that the DES key length for encryption is fixed at 56 bits; you cannot alter this key length.
The second is that you cannot execute multiple passes of encryption. That is, you cannot re-encrypt previously encrypted data by calling the function twice.
|
![]() Copyright © 1996-2000, Oracle Corporation. All Rights Reserved. |
|