public static String encodePassword(String value){
  return Base64.byteArrayToBase64(value.getBytes());
}

public static String encodePassword ( String value ) { return Base64 . byteArrayToBase64 ( value . getBytes ( ) ) ; }
encodes given string using the base64 encoding .
