|View script||License||Download documentation as: HTML or editable|
|Download script||History||Other scripts by: carl|
Script Library: 1222 scripts
Documentation for: inhide.r
Usage document for %inhide.r
1. Introduction to %inhide.r
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.
2. inhide At a Glance
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.
3. Using %inhide.r
3.1. Running %inhide.r
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
4. What you can learn
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) >>
5. What can break
Nothing to break here, other than you don't want to type in any actual passwords, as the script displays the characters typed.