Giter Club home page Giter Club logo

hidden-input's Introduction

Hidden Input

Executing this program allows to prompt users in interactive CLI apps for passwords without it being printed in the terminal.

This should be easier, but it's unfortunately not possible to achieve with most higher level languages that do not offer an abstraction for it. Therefore instead of relying on popular cheap tricks using VBScript to fire up a prompt (which was never even working well since the password is shown in clear while the user types it in) I decided to build this from C++ sources I found on stackoverflow. Credits go to guestgulkan from cplusplus.com, whoever (s)he may be.

Usage

Get the build/hiddeninput.exe file into your project and execute it to accept user input. Whatever the user types until a newline will be output back to the caller but will not show up in the terminal.

C++

hiddeninput.cpp is the original sources modified so that it compiles with VC2008 which allows the executable to run fine from Win XP onwards.

C

hiddeninput.c is an alternative version I worked on using the ancestral conio utilities. It is not completely functionally equivalent to the C++ version so I chose not to include the binary in the repo. Should you really have adverse reactions to running compiled C++ code, you can easily build this one yourself instead.

License

This is in the public domain as far as I am concerned. Should anyone involved in writing the original bits feel particularly sad or offended by my publishing of the sources or binary, drop me a line.

hidden-input's People

Contributors

seldaek avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.