Skip to main content



      Home
Home » Archived » BIRT » data ecryption
data ecryption [message #209650] Sat, 06 January 2007 15:01 Go to next message
Eclipse UserFriend
I'm using a simple bean in my application to encrypt data as it is stored in
the database.

To use my bean from a JSP, I do the following:

String str = "encrypt something" ;

Krupticos krupticos = new Kruptiocos() ;

krupticos.encode(str) ;

To reverse the process I then do:

String str = "" ;

str = krupticos.decode(str) ;

Can anyone tell me how I would implement this been in BIRT so that the data
is decrypted as it is displayed in the report?

Thanks, Leo
Re: data ecryption [message #209834 is a reply to message #209650] Mon, 08 January 2007 14:38 Go to previous message
Eclipse UserFriend
Originally posted by: johnw.innoventsolutions.com

Leo,

You would have to have the class installed in your classpath. You can
try putting that class in your project folder (never works for me, but
others have reported success), or put it in your plug-ins
(eclipse\plugins\org.eclipse.birt.report.data.oda.jdbc_2.1.1 .v20060922-1058\drivers
should work, although I don't believe that is the proper place for it).
Then using scripting, you should be able to instantiate the object like

krupticos = Packages.Krupticos();

Then in the data sets fetch event, you should be able to say something
like:

row["column_name"] = krupticos.decode(row["column_name"]);

Something like that "should" work.

John

Leo wrote:
> I'm using a simple bean in my application to encrypt data as it is stored in
> the database.
>
> To use my bean from a JSP, I do the following:
>
> String str = "encrypt something" ;
>
> Krupticos krupticos = new Kruptiocos() ;
>
> krupticos.encode(str) ;
>
> To reverse the process I then do:
>
> String str = "" ;
>
> str = krupticos.decode(str) ;
>
> Can anyone tell me how I would implement this been in BIRT so that the data
> is decrypted as it is displayed in the report?
>
> Thanks, Leo
>
>
Previous Topic:Chart Size By URL Parameter
Next Topic:page number
Goto Forum:
  


Current Time: Fri May 09 01:17:06 EDT 2025

Powered by FUDForum. Page generated in 0.02885 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top