public static boolean validatePassword(String originPassword, String encryptPassword) {
    return AsymmetricEncryptFactory.getEncryptProvider(
            CommonDescriptor.getInstance().getConfig().getEncryptDecryptProvider(),
            CommonDescriptor.getInstance().getConfig().getEncryptDecryptProviderParameter())
        .validate(originPassword, encryptPassword);
  }
Checking whether origin password is mapping to encrypt password by encryption

@param originPassword the password before encryption
@param encryptPassword the password after encryption
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/utils/AuthUtils.java