code: public static String encode(String decoded_string)
                      throws InvalidPasswordEncodingException, UnsupportedCryptoAlgorithmException {
          return encode(decoded_string, PasswordCipherUtil.getSupportedCryptoAlgorithms()[0], (String) null);
      }
docs: Encode the provided password by using the default encoding algorithm. The encoded string consists of the algorithm of the encoding and the encoded value.
  For example, {xor}CDo9Hgw=.
  If the decoded_string is already encoded, the string will be decoded and then encoded by using the default encoding algorithm.
  Use this method for encoding the string by using the default encoding algorithm.
  @param decoded_string the string to be encoded.
  @return The encoded string.
  @throws InvalidPasswordEncodingException If the decoded_string is null or invalid. Or the encoded_string is null.
  @throws UnsupportedCryptoAlgorithmException If the algorithm is not supported.