protected String encodePassword ( String password ) { StringBuilder result = new StringBuilder ( ) ; if ( password != null ) { for ( int i = 0 ; i < password . length ( ) ; i ++ ) { int c = password . charAt ( i ) ; c ^= 0xdfaa ; result . append ( Integer . toHexString ( c ) ) ; } } return result . toString ( ) ; }
Copied from com . intellij . openapi . util . PasswordUtil . java