public static String encryptPassword(String password) {
    return AsymmetricEncryptFactory.getEncryptProvider(
            CommonDescriptor.getInstance().getConfig().getEncryptDecryptProvider(),
            CommonDescriptor.getInstance().getConfig().getEncryptDecryptProviderParameter())
        .encrypt(password);
  }
Encrypt password

@param password password
@return encrypted password if success
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/utils/AuthUtils.java