Hi All,
I am having a problem to be solved Data text encryption and decryption. I got an answer from the link http://listserv.uga.edu/cgi-bin/wa?A2=ind0412&L=spssx-l&P=16411 as this shows how to encrypt the numeric. But is there any method to do the same for Character aswell. Like for example: my text is "SPSSX-L" I want to encrypt this to "JSJJT-N". Please help me on this. Thanks. ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD |
Perhaps this won't work for you or you do not have 21 but if you look at the save command, you'll see an option for encryption.
If you don't like that, you could do the reverse or a variation of your example posting. The key is this code element loop #POS = 1 to 10. - compute substr(ENCRYP,#POS,1) = string((number(substr(string(MYNUM,f10),#POS),pib1)+99),pib1). end loop. Character by character you subtract (or add) a constant number to the integer binary value of the character. Gene Maguin -----Original Message----- From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Vara Prasad Sent: Tuesday, August 06, 2013 4:09 AM To: [hidden email] Subject: DATA encryption Hi All, I am having a problem to be solved Data text encryption and decryption. I got an answer from the link http://listserv.uga.edu/cgi-bin/wa?A2=ind0412&L=spssx-l&P=16411 as this shows how to encrypt the numeric. But is there any method to do the same for Character aswell. Like for example: my text is "SPSSX-L" I want to encrypt this to "JSJJT-N". Please help me on this. Thanks. ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD |
In reply to this post by Vara Prasad
In Statistics V21 or later, you can encrypt
a sav file by using File > Save As and checking the encryption box or
via the
PASSPROTECT subcommand on SAVE. You can also encrypt output (spv) files. In Statistics 22 you can also encrypt syntax files. Jon Peck (no "h") aka Kim Senior Software Engineer, IBM [hidden email] phone: 720-342-5621 From: Vara Prasad <[hidden email]> To: [hidden email], Date: 08/06/2013 06:56 AM Subject: [SPSSX-L] DATA encryption Sent by: "SPSSX(r) Discussion" <[hidden email]> Hi All, I am having a problem to be solved Data text encryption and decryption. I got an answer from the link http://listserv.uga.edu/cgi-bin/wa?A2=ind0412&L=spssx-l&P=16411 as this shows how to encrypt the numeric. But is there any method to do the same for Character aswell. Like for example: my text is "SPSSX-L" I want to encrypt this to "JSJJT-N". Please help me on this. Thanks. ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD |
Free forum by Nabble | Edit this page |