secrets
Version, currently 0.1.03 versions
- 0.1.2latestJun 17, 2018
- 0.1.1not indexedJun 17, 2018
- 0.1.0not indexedJun 17, 2018
github.com/faustinoaq/secrets
Useful to get input on noecho, secrets, passwords, token, hints
12 stars
1 dependent
License: MIT
Nothing has been indexed for 0.1.0 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.
Installation
# Add this to your shard.yml
dependencies:
secrets:
github: faustinoaq/secrets
version: ~> 0.1.0Then run:
shards installshard.yml
No shard.yml has been indexed for 0.1.0. You can read it on the repository.
Dependencies
Unknown: the shard.yml for this version has not been read yet.
README
This README is the one indexed from the repository at its latest ref, not from the tag for this version.
# Secrets
[](https://travis-ci.org/faustinoaq/secrets)
Crystal shard to get secrets with hint and backspace support.

## Installation
Add this to your application's `shard.yml`:
```yaml
dependencies:
secrets:
github: faustinoaq/secrets
```
## Usage
```crystal
require "secrets"
secret = Secrets.gets prompt: "Write your secret: "
puts "Your secret has #{secret.size} character(s)"
```

```crystal
require "secrets"
secret = Secrets.gets prompt: "Write your secret: ", hint: "*", empty_error: "Empty input, Try again!"
puts "Your secret has #{secret.size} character(s)"
```

```crystal
require "secrets"
secret = Secrets.gets prompt: "Write your secret: ", empty_error: "Retry!", retry: 3
if secret.empty?
puts "Oh, no!, your secret is empty!"
else
puts "Your secret has #{secret.size} character(s)"
end
```

## Development
Execute `spec/` using:
```
crystal spec
Finished in 564.18 milliseconds
8 examples, 0 failures, 0 errors, 0 pending
```
## Contributing
1. Fork it ( https://github.com/faustinoaq/secrets/fork )
2. Create your feature branch (git checkout -b my-new-feature)
3. Commit your changes (git commit -am 'Add some feature')
4. Push to the branch (git push origin my-new-feature)
5. Create a new Pull Request
## Contributors
- [faustinoaq](https://github.com/faustinoaq) Faustino Aguilar - creator, maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.1.0- Tagged
- Jun 17, 2018
- Commit
a2fed97d6845- Indexed
- not yet
Dependents
Repository
github.com/faustinoaq/secrets
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 12, 2026
- Synced
- Aug 12, 2026
- Versions
- 3