How to make terminal input invisible in Ada?

179 Views Asked by At

I need to secure input passwords in an Ada command line application. Are there any ready to use functions/procedures in GNAT or third-party libraries?

2

There are 2 best solutions below

0
khv2online On BEST ANSWER

I found the free third party package that corresponds my needs. Trendy_Terminal has a procedure for temporally disabling terminal echo in Windows and Linux.

1
Jeffrey R. Carter On

https://github.com/jrcarter/Encryption-utilities has Password_Line, which does this. It works with GNAT and ObjectAda on Linux and Windows.