× 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.



On 27 Apr 2012 11:12, Stone, Joel wrote:
Any ideas what is incorrect ?

SET ENCRYPTION PASSWORD 'AAABBB'
create table jstone/fl2 (field1 char(20))
insert into fl2 (field1) values(Encrypt_RC2('TEST'))
select decrypt_char(field1) from fl2
Argument 01 of function DECRYPT_CHAR not valid.

what doesn't SQL like here??

The DECRYPT_CHAR argument-01 requires the CHAR to have been defined as FOR BIT DATA.

Try the following variation. An extra modification has the date\type attributes in a field, instead of as derived from a literal\constant as assigned by the SQL:

set encryption password 'AAABBB'
create table fl2
( field1 char(20)
, field2 char(40 /*20+16+4*/) FOR BIT DATA
)
insert into fl2 (field1) values('TEST')
update fl2 set field2=Encrypt_RC2(field1)
select field1, decrypt_char(field2) as field2 from fl2

Regards, Chuck

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.