0 Replies Latest reply on Oct 16, 2007 3:01 PM by 807605

    Problem in Encryption by using mysql 5.0

    807605
      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.