Syntax
int getstringpasswd ( string password [, string prompt] [, int attempts] )
Description
getstringpasswd prompts you for a "code word" which has been encrypted using the pmpasswd program and specified in the configuration file. You can also specify an optional prompt, which defaults to "Password:". And, you can specify the number of attempts to allow; the default is 3.
Returns true if the user enters the correct codeword; otherwise false.
Example
if (getstringpasswd("GhDByC9JGIRFI", "Enter password now: ", 4) == false) { reject ; }