Inventori plugin and vault

Hi, I'm developing an inventory plugin that contain some ansible vaulted data.
I don't know how to decode this data, I've tried with dataloader without lucky, what is the most stable way to decode (or encode) yaml data vaulted?

With inventory plugins, the only way I got it to work is to encode the entire yaml file. It then gets decoded when —vault-Id is passed

Fyi

https://github.com/ansible/ansible/issues/57012

Serge van Ginderachter