Password should not be displayed in Windows 64 bit machine

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
sab
Posts: 1
Joined: 29 Nov 2011 00:38

Password should not be displayed in Windows 64 bit machine

#1 Post by sab » 29 Nov 2011 00:44

Hi

I was trying to use this below strip of code to mask the password.

@echo off
echo hP1X500P[PZBBBfh#b##fXf-V@`$fPf]f3/f1/5++u5>in.com
echo Enter password:
for /f "tokens=*" %%i in ('in.com') do set "password=%%i"
del in.com
echo.
echo The Password is:"%password%"


This is working in Windows 32 bit , but not in 64 bit. Please let me know if there is any alternative for this in 64 bit.

alleypuppy
Posts: 82
Joined: 24 Apr 2011 19:20

Re: Password should not be displayed in Windows 64 bit machi

#2 Post by alleypuppy » 03 Dec 2011 11:44

I use a program (which can be found here) to mask passwords. Use EditV32 for 32-bit machines and EditV64 for 64-bit machines.

Post Reply