diff options
Diffstat (limited to 'dmvpn.lua')
-rw-r--r-- | dmvpn.lua | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -42,4 +42,13 @@ local decoders={ function M.decode_ext(oid, ext) return decoders[oid](ext:getData()) end +function M.get_password() + io.stderr:write('Password: ') + os.execute('stty -echo') + local res = io.read() + os.execute('stty echo') + io.stderr:write('\n') + return res +end + return M |