This discussion is archived
0 Replies Latest reply: Oct 16, 2007 8:01 AM by 807605 RSS

Problem in Encryption by using mysql 5.0

807605 Newbie
Currently Being Moderated
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.