code: @Override
      public String encrypt(String cryptoKey, String text) throws TechnicalException {
          Key aesKey = null;
          if (cryptoKey != null && !"".equals(cryptoKey)) {
              aesKey = buildKey16char(cryptoKey);
          }
          if (aesKey == null) {
              logger.error(TechnicalException.TECHNICAL_ERROR_MESSAGE_DECRYPT_CONFIGURATION_EXCEPTION);
              throw new TechnicalException(Messages.getMessage(TechnicalException.TECHNICAL_ERROR_MESSAGE_DECRYPT_CONFIGURATION_EXCEPTION));
          }
          try {
              Cipher cipher = Cipher.getInstance("AES");
              cipher.init(Cipher.ENCRYPT_MODE, aesKey);
              return getPrefix() + Base64.encodeBase64String(cipher.doFinal(text.getBytes()));
          } catch (NoSuchAlgorithmException | NoSuchPaddingException | InvalidKeyException | IllegalBlockSizeException | BadPaddingException e) {
              logger.error(Messages.getMessage(TechnicalException.TECHNICAL_ERROR_MESSAGE_ENCRYPT_EXCEPTION), e);
              throw new TechnicalException(Messages.getMessage(TechnicalException.TECHNICAL_ERROR_MESSAGE_ENCRYPT_EXCEPTION), e);
          }
      }
docs: {@inheritDoc}