public static String legacyEncrypt ( String username , String password , boolean ignoreUserCase ) { if ( ignoreUserCase ) { username = username . toLowerCase ( ) ; } return Crypt . crypt ( StringUtil . truncate ( username , 2 ) , password ) ; }
Encrypts passwords the way we used to .