Encryption/Decryption

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Prasad,

when you say that it isn't working "from ETL" does that mean from DataStage? Which stage and and how are you calling the SQL? It might be that you are doing a second encryption by misteak <sic>.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

I find it odd that the encrypt has 4 parameters (unabalanced in your post) and the decrypt only 1. Is that correct?
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Hi Prasad,
Not necessary to post twice, Pls delete the other post.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
ukyrvd
Premium Member
Premium Member
Posts: 73
Joined: Thu Feb 10, 2005 10:59 am

Data Encryption/DeCryption

Post by ukyrvd »

kumar_s wrote:Hi Prasad,
Not necessary to post twice, Pls delete the other post.
Hi Kumar,
Sure. Next time, i will try not to post twice.

Thanks,
Last edited by ukyrvd on Thu Mar 30, 2006 4:25 pm, edited 1 time in total.
thank you
- prasad
ukyrvd
Premium Member
Premium Member
Posts: 73
Joined: Thu Feb 10, 2005 10:59 am

Post by ukyrvd »

ArndW wrote:I find it odd that the encrypt has 4 parameters (unabalanced in your post) and the decrypt only 1. Is that correct?
Sorry, missed copying full query. I have used the correct/balenced query:

Code: Select all


SELECT xxxx, (RPAD (xxxx, LENGTH (xxxx) + 8 - MOD (LENGTH (xxxx), 8), ' '))
  FROM tablet


As entioned briefly earlier,

The query when ran @ SQL prompt working fine and encrypting the data correctly. And when we apply decrypt on that we are getting original value(space padded) back.

But when I execute from a DataStage job the encrypted text is different from what we got from the execution at SQL prompt. As a result the decrypt is not working either. The ETL job used is :

Code: Select all

         OCI------------------------------------------->OCI
    (select query posted earlier)                   (insert to table)
The output from dbms_obfuscation_toolkit is defined as varchar2 and so we are using that setting on our ETL column definition as well. I am wondering if this should be little different.

thanks
thank you
- prasad
Post Reply