Best practices for holding passwords in shell / Perl scripts?

前端 未结 13 1207
逝去的感伤
逝去的感伤 2021-02-08 02:19

I\'ve recently had to dust off my Perl and shell script skills to help out some colleagues. The colleagues in question have been tasked with providing some reports from an inter

13条回答
  •  难免孤独
    2021-02-08 02:26

    On windows create a Folder and a File within it containing the passwords in clear text. Set the user who would run the scheduled job(script or batch) as the only person with read/write access to this folder and file. (remove even administrator). To all other scripts, add code to read the clear text password from this restricted file.

    This should suffice for few.

    Keywords: Password HardCoding

提交回复
热议问题