Store Encrypted Data into a VARCHAR2 Column Using DBMS_CRYPTO
Last updated on DECEMBER 06, 2017
Applies to:PL/SQL - Version 10.2.0.1 and later
Information in this document applies to any platform.
Store encrypted data into a varchar2 column using the DBMS_CRYPTO package. In order to store encrypted data of a RAW datatype in a VARCHAR2 column, you must convert the data using either RAWTOHEX or the UTL_ENCODE package to make it suitable for VARCHAR2 storage.
You cannot directly store the raw encrypted data into a varchar2 column type. This is documented in the PLSQL programmers guide.
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
Million Knowledge Articles and hundreds of Community platforms