Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problem in Encryption by using mysql 5.0

807605Oct 16 2007
Hi,

I'm encrypt the password. But there is a problem while compailing the code errors are shown below:
H:\TOMCAT~1.0\webapps\RMJob>javac regi1.java
regi1.java:75: unclosed character literal
pStmt.setString(2,AES_ENCRYPT(Password,'password'));
^
regi1.java:75: unclosed character literal
pStmt.setString(2,AES_ENCRYPT(Password,'password'));
^
regi1.java:75: ')' expected
pStmt.setString(2,AES_ENCRYPT(Password,'password'));
^
3 errors

H:\TOMCAT~1.0\webapps\RMJob>
But i don't know i close the brackets perfectly.

why it is showing the error.

this is the actual code:
pstmt.setString(2,AES_ENCRYPT('"+Password+"','password'));
please any body solv this problem.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 13 2007
Added on Oct 16 2007
0 comments
170 views