docs: public OutputStream encrypt(OutputStream destination, String password) throws IOException {
  
          // Basic null check.
          // An empty stream can be encrypted:
          if (destination == null) {
              return null;
          }
  
          String salt = Generate.salt();
          SecretKey key = Keys.generateSecretKey(password, salt);
  
          // The key generation salt can be stored unencrypted at the start of the
          // stream:
          destination.write(ByteArray.fromBase64(salt));
  
          // Return the initialised stream:
          return encrypt(destination, key);
      }