inhide.r is a demonstration of the /hide refinement for the ask console input function.
If you are using REBOL/View you will want to check out request-pass.
Not setup is required, just do it. This is simply a program to inform programmers of the ability to mask password and other secret input.
From the library with:
>> do http://www.rebol.org/cgi-bin/cgiwrap/rebol/download-a-script.r?script-name=inhide.ror locally with:
>> do %inhide.r
This script is to ensure that REBOL programmers know how to hide password input. This script, being a demonstration, actually prints what is typed...defeating the purpose of hiding input, but fulfilling the purpose of informing programmers.
>> help ask USAGE: ASK question /hide DESCRIPTION: Ask the user for input. ASK is a function value. ARGUMENTS: question -- Prompt to user (Type: series) REFINEMENTS: /hide -- mask input with *
REBOL/View programmers will want to check out request-pass
>> help request-pass USAGE: REQUEST-PASS /offset xy /user username /only /title title-text DESCRIPTION: Requests a username and password. REQUEST-PASS is a function value. REFINEMENTS: /offset xy -- (Type: any) /user username -- (Type: any) /only -- Password only. /title title-text -- (Type: any) >>
Nothing to break here, other than you don't want to type in any actual passwords, as the script displays the characters typed.
|%inhide.r||Author: Carl Sassenrath|