When I use the es_password style on an edit box in the Windows version of J
it presents stars in place of letters in the edit field but gives me the
clear text
of what was entered in the edit box.
I've taken a very small application from Windows to Mac. The es_password
style gives me stars in the edit box. But the string I get is not what I
typed.
My first thought was that it might be an encryption of what is typed in the
password edit box. But typing the same string on 3 successive attempts
gives
3 different 'encryptions'.
The following is the entire definition of my dialog box:
pc pw;
xywh 7 14 51 12;cc pweb edit es_password;
pas 6 6;pcenter;
rem form end;
pw_pweb_button:
?????????????????????????????????????????????????????????????
?3?:? if. 'mypassword' -: pweb do. ?
? ? ? wd 'pclose' ?
? ? ? main '' ?
? ? ? else. ?
? ? ? if. 91 67 64 100 102 51 51 97 101 -: a. i. pweb do.?
? ? ? wdinfo 'encrypt match' ?
? ? ? wd 'pclose' ?
? ? ? main '' ?
? ? ? else. ?
? ? ?echo a. i. pweb ?
? ? ? wdinfo '** pbbt!!' ?
? ? ? wd 'pclose' ?
? ? ? end. ?
? ? ? end. ?
? ? ?NB. (2!:55) 0 ?
?????????????????????????????????????????????????????????????
I get a different set of values from the
echo a. i. pweb
line every time I try it. Even though I am typing the same password each
time.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm