Duo Authentication Proxy password (Linux)

I have a few Linux machines that have been setup with two-factor authentication for logins. Is there a way to hash or salt the Secret Key for the Unix application and apply it to the pam_duo.conf file?

I know there’s a Windows password encryption tool ( How do I use the Duo Authentication Proxy password encryption tool?).

Is it possible to apply something similar in the Unix environment?