[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to safely print a variable with secret value to stdout?
From: |
Greg Wooledge |
Subject: |
Re: How to safely print a variable with secret value to stdout? |
Date: |
Wed, 11 May 2022 22:05:07 -0400 |
On Thu, May 12, 2022 at 03:53:25AM +0200, Philippe Cerfon wrote:
> On Thu, May 12, 2022 at 3:25 AM Greg Wooledge <greg@wooledge.org> wrote:
> > You control the shell with the shebang.
> A user may still manually invoke
> <some shell> script
You can't idiot-proof the entire world. If a damned idiot does something
this stupid and compromises their own security, it is not your fault.
Moreover, you cannot PREVENT them from doing it. It's out of your hands.
> And my question was specifically that it works on bash but also
> portable on others.
Write it in C.