Hi Our application runs in CMD file. We prompt for a password. We have a requirement where in , in a 64 bit windows machine (XP) or anyother flavours , we have to mask the password. We tried using powershell.Now we are able to show the password as asterisk in the CMD screen and able to store the password in a file after decryption. But not able to retrieve the password from the file. But for security point of view we should not store the password in a file. We had used the following commands: # Read the string as securestring [system.Security.SecureString]$secureStringValue = Read-Host -AsSecureString "Enter Password"; # Convert the securestring to string [string]$stringValue = [Runtime.InteropServices.Marshal]::PtrToStringAuto([Runtime.InteropServices.Marshal]::SecureStringToBSTR($secureStringValue)) **** Please let us know anyother way where we can store the password in memory and retrieve it also in String format..