in reply to Passing a password to another process "safely" in Linux
Why not use some combination of existing tools such as ssh keys and system groups or sudo to authenticate and authorize the user?
--
In Bob We Trust, All Others Bring Data.
In Section
Seekers of Perl Wisdom