How to generate and store passwords securely with lookup?

Hello,

I am generating random passwords using the lookup plugin. My issue is that I would like these passwords to be stored securely. I have searched everywhere but haven’t found a solution to my problem.

Therefore, I modified the lookup plugin and am using ansible-vault to encrypt and store the passwords in a file.

Does this feature seem interesting to you and should I contribute to the project ?
Or, am I approaching this with the wrong logic?

Thank you in advance for your response.

Add the change to the module is my vote.

Mike