docs: public String encrypt(String string, SecretKey key) {
  
          // Basic null check.
          // An empty string can be encrypted:
          if (string == null) {
              return null;
          }
  
          Cipher cipher = getCipher();
  
          // Convert the input Sting to a byte array:
          byte[] iv = Generate.byteArray(getIvSize(cipher));
          byte[] data = ByteArray.fromString(string);
  
          // Encrypt the data:
          byte[] result = encrypt(iv, data, key, cipher);
  
          // Prepend the IV
          result = ArrayUtils.addAll(iv, result);
  
          // Return as a String:
          return ByteArray.toBase64(result);
      }