Java Encryption and Decryption


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Java Encryption and Decryption

  1. #1
    Join Date
    Mar 2007
    Posts
    9

    Java Encryption and Decryption

    Hai,

    I am new java developer. Now i am doing one struts application.

    In my application, at the User registration time, i need to Encrypt the password field and then i like to store into the database.


    After that the same user will be logging, at the moment the database password will decrypt and it will be compare to the User entering password.


    If both password's are equal, then only the User will allow the logging.

    can anybody know or have any sample code for Encrypt and Decrypt.


    If yes, kindly post me, my mail id is tamilvanan@veradistech.com.


    I am expecting anyone's reply.



    Thanks


    Tamilvanan

  2. #2
    Join Date
    Dec 2004
    Location
    San Bernardino County, California
    Posts
    1,468
    You may be looking for the services offered by the javax.crypto library.

    Take a look at the API documents.

    Also, here is an introduction to the classes of this library (this is the 1.4 link - I know there is a 1.6 document but I haven't found it on the Sun website - it is in my download of the API documents):
    http://java.sun.com/j2se/1.4.2/docs/...ryptoSpec.html

    and this Tutorial trail
    http://java.sun.com/docs/books/tutor...ity/index.html

    You should be able to find an abundance of information by searching for your terms - lots of college lecture materials which will give you the background you need to implement your task.
    Last edited by nspils; 05-24-2007 at 08:36 AM.

Similar Threads

  1. Encryption And Decryption
    By Navnath in forum ASP.NET
    Replies: 0
    Last Post: 07-13-2006, 02:09 AM
  2. Encryption / Decryption (VB-Excel Macro)
    By dilipsshah in forum Security
    Replies: 1
    Last Post: 04-15-2005, 04:52 PM
  3. Encryption / Decryption (VB-Excel MAcro)
    By dilipsshah in forum VB Classic
    Replies: 0
    Last Post: 03-23-2005, 12:13 AM
  4. Encryption & Decryption
    By Mu'tasem in forum Security
    Replies: 2
    Last Post: 07-13-2001, 03:18 PM
  5. Transparent Encryption and Decryption Component
    By Corneliu Giurgea in forum vb.announcements
    Replies: 0
    Last Post: 12-24-2000, 06:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center