Package org.jruby.pg.internal.messages

Examples of org.jruby.pg.internal.messages.AuthenticationMD5Password


      if (password == null)
        return new PasswordMessage(new byte[0]);
      return new PasswordMessage(password.getBytes());
    case AuthenticationMD5Password:
      try {
        AuthenticationMD5Password auth = (AuthenticationMD5Password) message;
        byte[] firstmd5 = encrypt(password.getBytes(), user.getBytes());
        byte[] finalmd5 = encrypt(firstmd5, 3, auth.getSalt());
        return new PasswordMessage(finalmd5);
      } catch (Exception e) {
        // if I know what I'm doing then we shouldn't be here
        return null;
      }
View Full Code Here

TOP

Related Classes of org.jruby.pg.internal.messages.AuthenticationMD5Password

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.