View previous topic :: View next topic |
Author |
Message |
yadav2005 Intermediate
Joined: 10 Jan 2005 Posts: 348 Topics: 144
|
Posted: Wed Jun 27, 2007 1:03 am Post subject: encrypting and decrypting of datasets |
|
|
Hai All,
I would like to know what do we mean by encrypting and decrypting of datasets ? Can anybody help me what exactly encryption and decryption concept / why do we need basically ? |
|
Back to top |
|
|
expat Intermediate
Joined: 01 Mar 2007 Posts: 475 Topics: 9 Location: Welsh Wales
|
Posted: Wed Jun 27, 2007 1:49 am Post subject: |
|
|
Have you read the encryption section in the IDCAMS manual ? _________________ If it's true that we are here to help others,
then what exactly are the others here for ? |
|
Back to top |
|
|
yadav2005 Intermediate
Joined: 10 Jan 2005 Posts: 348 Topics: 144
|
Posted: Wed Jun 27, 2007 5:27 am Post subject: |
|
|
Expat,
Can you help me with the link and moreover can u help me with any sample post in this website ? Thanks. |
|
Back to top |
|
|
yadav2005 Intermediate
Joined: 10 Jan 2005 Posts: 348 Topics: 144
|
Posted: Wed Jun 27, 2007 5:30 am Post subject: |
|
|
Please help me in understanding what do we mean by Encryption and Decryption and why do we need basically ? |
|
Back to top |
|
|
expat Intermediate
Joined: 01 Mar 2007 Posts: 475 Topics: 9 Location: Welsh Wales
|
|
Back to top |
|
|
dbzTHEdinosauer Supermod
Joined: 20 Oct 2006 Posts: 1411 Topics: 26 Location: germany
|
Posted: Wed Jun 27, 2007 5:38 am Post subject: |
|
|
yadov2005,
there was a thread about encryption and decryption recently. Kolusu provided an answer and some links.
search on kolusu's posts. _________________ Dick Brenholtz
American living in Varel, Germany |
|
Back to top |
|
|
yadav2005 Intermediate
Joined: 10 Jan 2005 Posts: 348 Topics: 144
|
Posted: Wed Jun 27, 2007 5:48 am Post subject: |
|
|
Thanks Dick and Expat for the support.
But please help me out why do we need encryption and decryption , as i am not at all able to understand why do we need it and what is the necessity.I know i am lagging basics but please help me understand the concepts clearly. |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Wed Jun 27, 2007 6:36 am Post subject: |
|
|
yadav2005,
Encryption is the conversion of datainto a form, called a ciphertext, that cannot be easily understood by unauthorized people. Decryption is theprocess of converting encrypted data back into its original form,so it can be understood.
The use of encryption/decryption is as old as theart of communication. In wartime, a cipher, often incorrectlycalled a "code," can be employed to keep the enemy from obtaining the contents of transmissions. (Technically, a codeis a means of representing a signal without the intent of keepingit secret; examples are Morse code and ASCII.) Simple ciphers include the substitution of letters for numbers, the rotation of letters in the alphabet, and the "scrambling" of voice signals by inverting the sideband frequencies. More complex ciphers work according to sophisticated computer algorithms that rearrange the data bits in digital signals.
In order to easily recover the contents of anencrypted signal, the correct decryption key is required. The key is an algorithm that "undoes" the work of the encryption algorithm. Alternatively, a computer can be used in an attempt to "break" the cipher. The more complex the encryption algorithm, the more difficult it becomes to eavesdrop on the communications without access to the key.
Encryption/decryption is a good idea when carrying out any kind of sensitive transaction, such as a credit-card purchase online,or the discussion of a company secret between different departments in the organization. The stronger the cipher -- thatis, the harder it is for unauthorized people to break it -- the better, in general. However, as the strength of encryption/decryption increases, so does the cost.
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
yadav2005 Intermediate
Joined: 10 Jan 2005 Posts: 348 Topics: 144
|
Posted: Wed Jun 27, 2007 6:53 am Post subject: |
|
|
Kolusu,
Thanks a lot for your reply and i am clear with my basics.Can i have an example to demonstrate the same in my test region as i want to try out the process ?
Thank you once again. |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
|
Back to top |
|
|
yadav2005 Intermediate
Joined: 10 Jan 2005 Posts: 348 Topics: 144
|
Posted: Wed Jun 27, 2007 8:32 am Post subject: |
|
|
Kolusu,
Thanks a lot once again.I am trying to simulate an example but i am facing some error .Can you let me know how to fix the error ?
Example job from the manual
Code: |
//ENPRI JOB ...
//JOBCAT DD DSN=D27UCAT,DISP=SHR
//STEP1 EXEC PGM=IDCAMS
//CLEAR DD DSN=SAMDS1,DISP=OLD,
// VOL=SER=VOL005,UNIT=3380
//CRYPT DD DSN=ESDS1,DISP=OLD
//KEYIN DD *
X'53467568503A7C29'
/*
//SYSPRINT DD SYSOUT=A
//SYSIN DD *
REPRO -
INFILE(CLEAR) -
OUTFILE(CRYPT/UPPW) -
REUSE -
ENCIPHER -
(PRIVATEKEY -
DATAKEYFILE(KEYIN))
/*
|
OUTPUT ERROR
Code: |
IDCAMS SYSTEM SERVICES TIME: 18:55:07
REPRO -
INFILE(INPUT) -
OUTFILE(CRYPT) -
REUSE -
ENCIPHER -
(PRIVATEKEY -
DATAKEYFILE(KEYIN))
IDC3335I ENCIPHER ERROR
IDC3336I ** GENKEY RETURN CODE IS 4
IDC0005I NUMBER OF RECORDS PROCESSED WAS 0
IDC3003I FUNCTION TERMINATED. CONDITION CODE IS 12
IDC0002I IDCAMS PROCESSING COMPLETE. MAXIMUM CONDITION CODE WAS 12 |
|
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Wed Jun 27, 2007 8:43 am Post subject: |
|
|
yadav2005,
You need Programmed Cryptographic Facility (PCF) to be active in your shop to perform the Encryption/decryption. Looks like your PCF was not initialized. You need to talk to your Systems programmers and check if your system has PCF
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
yadav2005 Intermediate
Joined: 10 Jan 2005 Posts: 348 Topics: 144
|
Posted: Wed Jun 27, 2007 8:53 am Post subject: |
|
|
Kolusu,
Is there any way to find out if i have PCF in my shop or not ? I am assuming that there might be a job running if i have PCF facility.
Please let me know any means to get known / how to get activated the PCF .Thank You. |
|
Back to top |
|
|
yadav2005 Intermediate
Joined: 10 Jan 2005 Posts: 348 Topics: 144
|
Posted: Wed Jun 27, 2007 12:14 pm Post subject: |
|
|
Kolusu,
I was successfully able to run my encryption job and it went fine and i saw the contents of the encrypted ESDS dataset but while i try to decrypt the ESDS Dataset i am failing and the error is below and i am making use of the example in the link.Please help me how to fix the error.
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/dgt1v403/3.25.3.9?SHELF=&DT=19990113080956&CASE=
Code: |
//STEP010 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//CRYPT DD DSN=PROJECT.TEST.CRYPT,DISP=SHR
//CLEAR DD DSN=PROJECT.TEST.OUT,DISP=SHR
//SYSIN DD *
REPRO -
INFILE(CRYPT) -
OUTFILE(CLEAR) -
DECIPHER -
(DATAKEYFILE(X'53467568503A7C29'))
/*
//
IDCAMS SYSTEM SERVICES TIME: 12:49:56
REPRO -
INFILE(CRYPT) -
OUTFILE(CLEAR) -
DECIPHER -
(DATAKEYFILE(X'53467568503A7C29'))
IDC3300I ERROR OPENING ....&.@.
IDC3304I ** JCL STATEMENT MISSING
IDC0005I NUMBER OF RECORDS PROCESSED WAS 0
IDC3003I FUNCTION TERMINATED. CONDITION CODE IS 12
IDC0002I IDCAMS PROCESSING COMPLETE. MAXIMUM CONDITION CODE WAS 12 |
|
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Wed Jun 27, 2007 12:25 pm Post subject: |
|
|
yadav2005,
Ok this is not fair that everytime you run an experimental job and it fails you come here and seek help trying to fix it. You should be able to look up the error and try to solve it and if everything fails then we can assist you.
Quote: |
IDC3300I ERROR OPENING ....&.@.
IDC3304I ** JCL STATEMENT MISSING
|
Post the error message Id's here and read the explanation and try to solve it
http://www-03.ibm.com/servers/eserver/zseries/zos/bkserv/lookat/
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
|
|