public static String removeCryptoAlgorithmTag ( String password ) { if ( null == password ) { return null ; } String rc = null ; String data = password . trim ( ) ; if ( data . length ( ) >= 2 ) { if ( ' ' == data . charAt ( 0 ) ) { int end = data . indexOf ( ' ' , 1 ) ; if ( end > 0 ) { end ++ ; // we want to jump past the end marker if ( end == data . length ( ) ) { rc = EMPTY_STRING ; } else { rc = data . substring ( end ) . trim ( ) ; } } } } return rc ; }
Remove the algorithm tag from the input encoded password .