I know this isn't too helpful, but it's a start... We have an encryption program that someone created a while back using Cryptix (http://www.cryptix.com/). Check out their site, it looks like they have made some programs recently that can help your cause. We have use this utility to create a public and private key. We store the private key(in binary format) on the servers key ring, then we use the public key to encrypt/decrypt the data (typically credit card numbers) before we connect to the database or after we get it back from the database, that way the data is encrypted while passing from the server to the database over the unsecured network. Hope this helps...please pass along your results. We are still using a proprietary solution, and I would like to find a better way to do this since maintenance on this system has been difficult. rock on, daveh -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Saturday, August 26, 2000 12:05 PM To: [EMAIL PROTECTED] Subject: JRun-Talk V1 #152 JRun-Talk Sat, 26 Aug 2000 Volume 1 : Number 152 In this issue: Re: Bean not EJBs Re: Encryption for storage RE: Bean not EJBs ---------------------------------------------------------------------- Date: Sat, 26 Aug 2000 11:46:40 +0200 From: Fabian Panthen <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Re: Bean not EJBs Message-ID: <[EMAIL PROTECTED]> thanx, but since i want to set init params for the bean this way, i'd allways have to run the servlet/jsp before i can go on using my bean, right? Scott Stirling schrieb: > Yes, access them in a servlet or JSP and pass them to the bean in a set method. > Here's an example from a book I've been writing with some other folks. The only > difference for your case is that you would have an expression set the "value" > attribute of the setProperty tag instead of a literal String, e.g., value="<%= > application.getInitParameter("foo") %>" > > <%@ page import="FirstBean" %> > > <jsp:useBean id="fb" class="FirstBean" /> > > <jsp:setProperty name="fb" property="stringThing" value="Hello World" /> > > <html> > <head><title>First Bean JSP</title></head> > <body> > The value of FirstBean's stringThing property is: > > <br />"<jsp:getProperty name="fb" property="stringThing" />" > > </body> > </html> > > ************************************* > > public class FirstBean > { > private String stringVar; > > public String getStringThing() > { > return stringVar; > } > > public void setStringThing(String bar) > { > stringVar = bar; > } > > public FirstBean() > { > stringVar = ""; > } > } > > Scott Stirling > > > -----Original Message----- > > From: Fabian Panthen [mailto:[EMAIL PROTECTED]] > > Sent: Friday, August 25, 2000 4:25 PM > > To: [EMAIL PROTECTED] > > Subject: Bean not EJBs > > > > > > Does anyone know how to access the application init parameters > > from within a bean (no EJB that is)? > > I tried to access it in about a million ways, no success. > > > > -- > > > > Fabian Panthen > > ---------------------------------------------------------------------------- -- > Archives: http://www.egroups.com/group/jrun-interest/ > Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_talk > or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Fabian Panthen ------------------ IT-Architekt plenum New Media Ein Unternehmen der plenum Gruppe Torstra�e 134 10119 Berlin Tel.:+49.30.24088 0 Fax: +49.30.24088 500 http://www.plenum-new-media.com Besuchen Sie uns auf der BerlinBeta 1.9.- 3.9.2000 Haus der Kulturen der Welt John-Foster-Dulles-Allee 10 Berlin-Tiergarten http://www.berlinbeta.de ------------------------------ Date: Sat, 26 Aug 2000 08:32:21 -0500 From: "Larry Rogers" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Re: Encryption for storage Message-ID: <[EMAIL PROTECTED]> Thanks Mike. But devapp.pdf only mentions a UnixCryptPassword. It doesn't tell anything about how to use the UnixCrypt package provided by Allaire. But you've guessed exactly what I need to encrypt! Can anyone help? "Mike Hogarth" wrote: Documentation in devapp.pdf (came with JRun3) under /docs: page 412 (or do= a search with Adobe Acrobat for UnixCrypt). *********** REPLY SEPARATOR *********** On 8/25/00 at 11:14 AM Larry Rogers wrote: >I'm needing to encrypt passwords before saving them in a database table.= I see >that jrun.jar contains a class allaire.jrun.util.UnixCrypt that should do= what I >need, but there is no documentation of the package allaire.jrun.util at= all. >Where can I find javadocs as well as examples of how to use the JRun >implementation of UnixCrypt? Or is there a better, more secure way to= encrypt >passwords for storage in a database? > >TIA, > >Larry Rogers > > ------------------------------ Date: Sat, 26 Aug 2000 11:18:49 -0400 From: "Scott Stirling" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Subject: RE: Bean not EJBs Message-ID: <[EMAIL PROTECTED]> OK, but a JavaBean doesn't have init params. A JavaBean doesn't have any ties into the Servlet API. If you want init params in a JavaBean, use a Servlet and pre-load it, and set init params in the servlet declaration in web.xml. Or read in a properties file from the file system. Then you're moving away from having a reusable component, which may be fine for your purposes. In which case, you might just as well write a bean that reads its init params from the web.xml directly, except that's already what a servlet does. Scott S. > -----Original Message----- > From: Fabian Panthen [mailto:[EMAIL PROTECTED]] > Sent: Saturday, August 26, 2000 5:47 AM > To: [EMAIL PROTECTED] > Subject: Re: Bean not EJBs > > > thanx, but since i want to set init params for the bean this way, i'd > allways have to run > the servlet/jsp before i can go on using my bean, right? > > Scott Stirling schrieb: > > > Yes, access them in a servlet or JSP and pass them to the bean in a > set method. > > Here's an example from a book I've been writing with some other > folks. The only > > difference for your case is that you would have an expression set > the "value" > > attribute of the setProperty tag instead of a literal String, e.g., > value="<%= > > application.getInitParameter("foo") %>" > > > > <%@ page import="FirstBean" %> > > > > <jsp:useBean id="fb" class="FirstBean" /> > > > > <jsp:setProperty name="fb" property="stringThing" value="Hello World" /> > > > > <html> > > <head><title>First Bean JSP</title></head> > > <body> > > The value of FirstBean's stringThing property is: > > > > <br />"<jsp:getProperty name="fb" property="stringThing" />" > > > > </body> > > </html> > > > > ************************************* > > > > public class FirstBean > > { > > private String stringVar; > > > > public String getStringThing() > > { > > return stringVar; > > } > > > > public void setStringThing(String bar) > > { > > stringVar = bar; > > } > > > > public FirstBean() > > { > > stringVar = ""; > > } > > } > > > > Scott Stirling > > > > > -----Original Message----- > > > From: Fabian Panthen [mailto:[EMAIL PROTECTED]] > > > Sent: Friday, August 25, 2000 4:25 PM > > > To: [EMAIL PROTECTED] > > > Subject: Bean not EJBs > > > > > > > > > Does anyone know how to access the application init parameters > > > from within a bean (no EJB that is)? > > > I tried to access it in about a million ways, no success. > > > > > > -- > > > > > > Fabian Panthen ------------------------------ End of JRun-Talk V1 #152 ************************ ---------------------------------------------------------------------------- -- Archives: http://www.egroups.com/group/jrun-interest/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. ------------------------------------------------------------------------------ Archives: http://www.egroups.com/group/jrun-interest/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebarRsts&bodyRsts/jrun_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
