This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes password field Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "password field" Watch "password field" New topic
Author

password field

kelly devon
Ranch Hand

Joined: Apr 15, 2004
Posts: 75
Good day all,


i have created a jpassword field and i am inserting the new password created into microsoft sql database, the jpassword accepts the input as char[]. when a user creates the password it prints out what the user entered but in the database it is giving me characters i don't recognize, they look like this $#%BNM. the datafield of the database i chose varchar, i tried char. it gave me the same thing please help me thank you.
below is a fragment of the code the asks it to send the data to the database.


Please UseCodeTags - I've added them for you above. - Jesper de Jong


kel
K. Tsang
Bartender

Joined: Sep 13, 2007
Posts: 1973
    
    7

Well it's a password, the text in the database is most likely encrypted.


K. Tsang JavaRanch SCJP5 SCJD/OCM-JD OCPJP7
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: password field
 
Similar Threads
Creating a database with Sun Java Application Server 9
Connection.prepareStatement is throwing "General Error Exception"
Syntax error in SQL