ASCII code conversion in Actionscript

(imported topic written by SystemAdmin)

Hello,

I am trying to put together a tasks to create local accounts, change local passwords. I already have the scripts to do so that take a text file input and they work very well, so I plugged them in tasks and generate the text file throught the script on the go - they still work. However, it leaves the password as a string within the actionscript and anybody can read them, so I wrote an external VBscript that I will distribute that converts a regular string into an ascii code (Ex. “%54%65%73%74%31%32%33”) and now when I plug in the ascii code in the task it does not convert it back to a string.

This version works (ascii code hardcoded within the actionscript):

delete __appendfile delete admins.dat   appendfile 
{
"user1"
} appendfile 
{
"%54%65%73%74%31%32%33"
}   move __appendfile Admins.dat

This version works with regular strings but it does

NOT

convert the ascii code back to a string:

action parameter query 
"username" with description 
"Please provide username" with 

default value 
"user1" action parameter query 
"password" with description 
"Please provide password" with 

default value 
""   delete __appendfile delete admins.dat   appendfile 
{parameter 
"username"
} appendfile 
{parameter 
"password"
}   move __appendfile Admins.dat

I even tried to pass several combinations (see below) but none seem to make a difference:

%54%65%73%74%31%32%33

“%54%65%73%74%31%32%33”

{"%54%65%73%74%31%32%33"}

Is there something I am missing? Is there an easier way to come up with a solution that will provide some kind of security instead of ascii conversion. Please advise.

ageorgiev

(imported comment written by SystemAdmin)

Why not use the Local Account tools that are in the Labs section? They make use of encryption to properly obscure the password and ensure that NOBODY sees the passwords.