for the most part, the two apis, work fine with most data...
Qc3DecryptData Decrypt data Restores encrypted data to a
clear (intelligible) form.
Qc3EncryptData Encrypt data Scrambles clear data into an
unintelligible form.
I wrote a test wrapper outside of my FIELDPROC to make a call to encode the a string parm and then decode it (and write both values to joblog)...
Assume most (say 9 out of 10) values I pass it encode/decode correctly... however when I pass it a '00357560', or '0045221', or '00425043' for example, it creates the encode string for it no problem but cannot turn around and decode the encoded string....??
I'll first start with a correct run from a value it has not problem with...
call enc938tstr ('0357561' '0007')
R¹!ç»C®°Y°'ë}o <-- encoded value generates
0357561 <-- uses encoded value to turn around and decode back to original value
Now, change one digit to use a value I have issues with...
call enc938tstr ('0357560' '0007')
5ÑsüõE*;ø·ÓòuúT <-- encoded value generates
<-- cannot decoded value based on encoded value
In debug, the Qc3DecryptData returns an error... unfortunately i am unable to debug further...
DecryptData( PxCphStr
: %Len( PxCphStr )
: ALGD0200
: 'ALGD0200'
: KEYD0400
: 'KEYD0400'
: CSP_SFW
: *Blanks
: RtnDtaStr
: %Size( RtnDtaStr )
: RtnDtaLen
: ERRC0100
);
If ERRC0100.BytAvl > *Zero;
Return NULL;
endif;
ERRC0100.BytAvl = 15
Anyone have any suggestions?
Qc3DecryptData Decrypt data Restores encrypted data to a
clear (intelligible) form.
Qc3EncryptData Encrypt data Scrambles clear data into an
unintelligible form.
I wrote a test wrapper outside of my FIELDPROC to make a call to encode the a string parm and then decode it (and write both values to joblog)...
Assume most (say 9 out of 10) values I pass it encode/decode correctly... however when I pass it a '00357560', or '0045221', or '00425043' for example, it creates the encode string for it no problem but cannot turn around and decode the encoded string....??
I'll first start with a correct run from a value it has not problem with...
call enc938tstr ('0357561' '0007')
R¹!ç»C®°Y°'ë}o <-- encoded value generates
0357561 <-- uses encoded value to turn around and decode back to original value
Now, change one digit to use a value I have issues with...
call enc938tstr ('0357560' '0007')
5ÑsüõE*;ø·ÓòuúT <-- encoded value generates
<-- cannot decoded value based on encoded value
In debug, the Qc3DecryptData returns an error... unfortunately i am unable to debug further...
DecryptData( PxCphStr
: %Len( PxCphStr )
: ALGD0200
: 'ALGD0200'
: KEYD0400
: 'KEYD0400'
: CSP_SFW
: *Blanks
: RtnDtaStr
: %Size( RtnDtaStr )
: RtnDtaLen
: ERRC0100
);
If ERRC0100.BytAvl > *Zero;
Return NULL;
endif;
ERRC0100.BytAvl = 15
Anyone have any suggestions?
Comment