![]() |
|
[Shell] [Batch] [Source Code] Password protect batch file without storing password plaintext - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [Shell] [Batch] [Source Code] Password protect batch file without storing password plaintext (/showthread.php?tid=6294902) |
[Batch] [Source Code] Password protect batch file without storing password plaintext - Robert Rouge - Mar 23, 2025 if look up how to password protect a batch file, they give very not secure code maybe like: Code @echo offhere is better security for password storage: Code @echo off[ln] Password: RougeSoftware RE: [Batch] [Source Code] Password protect batch file without storing password plaintext - DramaKing - Mar 23, 2025 Your example is perhaps a best case, but DOS commands do not securely store secrets like PowerShell's SecureString. I would at least remove the command to echo the password, but it probably doesn't matter much. The use case is also questionable because this kind of password protection would be trivial to crack. RE: [Batch] [Source Code] Password protect batch file without storing password plaintext - Robert Rouge - Mar 23, 2025 (Mar 23, 2025 11:08 AM)DramaKing Wrote: Your example is perhaps a best case, but DOS commands do not securely store secrets like PowerShell's SecureString. I would at least remove the command to echo the password, but it probably doesn't matter much. The use case is also questionable because this kind of password protection would be trivial to crack. thank for your interest. Do not know what could use it for, but it is better than what is normal RE: [Batch] [Source Code] Password protect batch file without storing password plaintext - cote - Mar 26, 2025 (Mar 23, 2025 12:35 PM)Robert Rouge Wrote: thank for your interest. Do not know what could use it for, but it is better than what is normal I like that. I love there are new snippets of batch code I had no idea about RE: [Batch] [Source Code] Password protect batch file without storing password plaintext - Anonynuk - Sep 24, 2026 This is interesting to say the least. Thanks for the share! |