My Oracle Support Banner

Decrypting data padded using DBMS_CRYPTO.PAD_ZERO results in data loss (Doc ID 2544676.1)

Last updated on JANUARY 22, 2020

Applies to:

Oracle Database - Enterprise Edition - Version 12.2.0.1 and later
Information in this document applies to any platform.

Symptoms

Encrypt after padding using DBMS_CRYPTO.PAD_ZERO.
Decrypting that data results in the loss of values that existed prior to encryption.

Changes

The data before encryption has 0x00 at the end.
I padded that data with DBMS_CRYPTO.PAD_ZERO.

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.