public static int decodedLength(String secret){
  checkNotNull(secret);
  secret=removeEnd(removeEnd(chomp(secret),"="),"=");
  return (secret.length() * 3) / 4;
}

public static int decodedLength ( String secret ) { checkNotNull ( secret ) ; secret = removeEnd ( removeEnd ( chomp ( secret ) , "=" ) , "=" ) ; return ( secret . length ( ) * 3 ) / 4 ; }
slightly hokey way of calculating the decoded - length without bothering to decode .
