I would not choose the word "encryption" to apply to the algorithm below. Encryption
implies some degree of security, and simple
obfustication yields very little security.
> -----Original Message-----
> From: A mailing list for discussion about Sun Microsystem's Java Servlet
> API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of
> sachin rameshrao zingade
> Sent: Thursday, December 09, 1999 7:55 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Encription PROBLEM!!!!!!!!
>
>
> Just try out this code
>
> import java.awt.*;
> import java.applet.*;
> public class ed
> {
> String encrypt(String str)
> {
> int x=str.length();
> char str2[]=new char[x];
> for (int i=0;i<x;i++)
> {
> char ch;
> ch=str.charAt(i);
> ch++;
> ch++;
> ch++;
> str2[i]=ch;
> }
> String str3=new String(str2);
> return(str3);
> }
>
> String decrypt(String str1)
> {
> int x=str1.length();
> char str2[]=new char[x];
> for(int i=0;i<x;i++)
> {
> char ch;
> ch=str1.charAt(i);
> ch--;
> ch--;
> ch--;
> str2[i]=ch;
> }
> String str3=new String(str2);
> return(str3);
> }
>
> public static void main(String a[])
> {
>
> ed e=new ed();
> String x=new String("**sachin**");
> String s =e.encrypt(x);
> System.out.println("after encrypt"+s);
> int y=s.length();
> String d=e.decrypt(s);
> System.out.println("after decrypt"+d);
>
> }
> }
>
> All the best
>
> Sachin
> ----- Original Message -----
> From: Tom John <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, December 09, 1999 7:29 PM
> Subject: Re: Encription PROBLEM!!!!!!!!
>
>
> > Hi,
> > It's not clear, could you please explain it bit more or else send me
> some
> > sample code.
> >
> > Thanks
> > TOM
> >
> >
> >
> > At 05:06 PM 12/9/99 +0530, you wrote:
> > >i think you are passing the name and password as string to the database
> so
> > >while passing on client side encrypt the data character by character by
> > >adding some ascii value to it .and on the server side
> > >just decrypt it with the same ascii value.I have used the same
> > >
> > >I think it will work
> > >
> > >sachin
> > >----- Original Message -----
> > >From: Tom John <[EMAIL PROTECTED]>
> > >To: <[EMAIL PROTECTED]>
> > >Sent: Thursday, December 09, 1999 4:26 PM
> > >Subject: Encription PROBLEM!!!!!!!!
> > >
> > >
> > >> Hi,
> > >>
> > >> In my application(client/server) when a client registering to the
> system
> > >he
> > >> enters the username password and etc., and am just storing the exact
> > >values
> > >> in the database as it is.
> > >> I do know it's not appropriate as far as the SECURUTY is concerned.
> > >> Can anybody let me know is there any encription(oneway) method to store
> > >data
> > >> at the server end.
> > >>
> > >>
> > >>
> > >> am using WINNT/ACCEES DB/JSDK2.1
> > >> future hopes to move into oracle DB
> > >>
> > >> Thanks in ADVANCE.
> > >>
> > >> TOM
> > >>
> > >>
> >
> >___________________________________________________________________________
> > >> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> > >body
> > >> of the message "signoff SERVLET-INTEREST".
> > >>
> > >> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > >> Resources: http://java.sun.com/products/servlet/external-resources.html
> > >> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
> > >
> >
> >___________________________________________________________________________
> > >To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> > >of the message "signoff SERVLET-INTEREST".
> > >
> > >Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > >Resources: http://java.sun.com/products/servlet/external-resources.html
> > >LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
> > >
> > >
> >
> >
> ___________________________________________________________________________
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> > of the message "signoff SERVLET-INTEREST".
> >
> > Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > Resources: http://java.sun.com/products/servlet/external-resources.html
> > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html