lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


* Dirk Laurie:

> The following code
>
>     if (hash(io.read())==hashed_password) then ...
>
> suffers from the drawback that what you type appears on the screen.

If you've got a mechanism to call C functions, you can simply use
getpass(3), which takes care of all the details.