khv2online
khv2online

Reputation: 100

How to make terminal input invisible in Ada?

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?

Upvotes: 1

Views: 193

Answers (2)

khv2online
khv2online

Reputation: 100

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.

Upvotes: 3

Jeffrey R. Carter
Jeffrey R. Carter

Reputation: 3358

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

Upvotes: 2

Related Questions