× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



What I'm trying to do is encrypt is a single column for selected records
so that when the file is being read the program won't know if the data
is encrypted or not. This is ok as for normal use as the correct
security is being implemented. In other words, an encrypted field will
appear as encrypted data and an unencrypted value will also appear in
it's correct form.

I've tried this on my test file and it works correctly.

The problem arises when an authorised user needs to view data in it's
unencrypted form. When I run the DECRYPT function over the above data,
it fails, presumably because the rows with unencrypted data are not
recognized by the select with the DECRYPT function. The following fails:

SELECT decrypt_char(card,'abcdef') FROM           
anvmxp/encrypt                                    
Query cannot be run.  See lower level messages.   

The lower level messages are as follows:

 Function DECRYPT_CHAR cannot be run.            
 User-defined function error on member ENCRYPT.  
 Function DECRYPT_CHAR cannot be run.            
 User-defined function error on member ENCRYPT.  
 Function DECRYPT_CHAR cannot be run.            
 User-defined function error on member ENCRYPT.  

The obvious question is to ask if there is any way of identifying if a
field is encrypted and to issue the correct select statement
accordingly. Or is there some other error trapping process I can use?




Mike Pantzopoulos

EIG-Ansvar Limited
Tel  : 61 (3) 9614 3535
Fax: 61 (3) 9614 2740



*********************************************************************************************************
This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. If 
you are not the intended recipient, any use, disclosure or copying of this 
message is unauthorised. If you have received this message in error, please 
reply using the sender's email address. 

This footnote confirms that this email message has been scanned for computer 
viruses. EIG-Ansvar Limited does not accept liability for any loss or damage, 
whether caused by our own negligence or not, that results from a computer virus 
or defect in the transmission of this email or any attached file. 
EIG-Ansvar Limited - Australia (A.B.N. 21 007 216 506)
Email : insure@xxxxxxxxxxxxxxxx

Eig-Ansvar Limited - New Zealand
Email : insure@xxxxxxxxxxxxxxxx

*********************************************************************************************************


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.