module Secrets

Overview

Secrets gets secrets using a hint character with support for backspace.

Secrets.gets prompt: "Write your secrets: ", hint: "✕", empty_error: "Try again!"
Secrets.gets prompt: "password: "

Extended Modules

Defined in:

secrets.cr
secrets/version.cr

Constant Summary

VERSION = "0.1.2"

Instance Method Summary

Instance Method Detail

def gets(prompt = "", hint = "*", empty_error : String | Nil = nil, retry : Int32 | Nil = nil) #

[View source]