Safe method to use credentials in packer config

Hello everyone,

I’m new to packer and did some research on the internet.
I’m using packer to build VMWare template.
The packer config file currently contains my credentials in plain text.

Is there secure method to use hashes or something else?