/** * Encrypt a payload and encode the result using {@link Alphabet} given to builder. * All necessary parameters are supplied through {@link Builder}. * @param payload secret to encrypt * @return String encrypted and encoded using given parameters * @throws GeneralSecurityException when problem occurs like non-existent algorithm or similar problems */ public String encryptAndEncode(char[] payload) throws GeneralSecurityException { return encodeUsingAlphabet(encrypt(charArrayEncode(payload))); }
/** * Encrypt a payload and encode the result using {@link Alphabet} given to builder. * All necessary parameters are supplied through {@link Builder}. * @param payload secret to encrypt * @return String encrypted and encoded using given parameters * @throws GeneralSecurityException when problem occurs like non-existent algorithm or similar problems */ public String encryptAndEncode(char[] payload) throws GeneralSecurityException { return encodeUsingAlphabet(encrypt(charArrayEncode(payload))); }
/** * Encrypt a payload and encode the result using {@link Alphabet} given to builder. * All necessary parameters are supplied through {@link Builder}. * @param payload secret to encrypt * @return String encrypted and encoded using given parameters * @throws GeneralSecurityException when problem occurs like non-existent algorithm or similar problems */ public String encryptAndEncode(char[] payload) throws GeneralSecurityException { return encodeUsingAlphabet(encrypt(charArrayEncode(payload))); }
/** * Encrypt a payload and encode the result using {@link Alphabet} given to builder. * All necessary parameters are supplied through {@link Builder}. * @param payload secret to encrypt * @return String encrypted and encoded using given parameters * @throws GeneralSecurityException when problem occurs like non-existent algorithm or similar problems */ public String encryptAndEncode(char[] payload) throws GeneralSecurityException { return encodeUsingAlphabet(encrypt(charArrayEncode(payload))); }