README.md: Switch Not to Bidet

master
Didactic Drunk 2021-06-15 15:55:03 -07:00
parent b765a56073
commit 437b3da6b1
2 changed files with 6 additions and 6 deletions

View File

@ -39,11 +39,11 @@ Secret providers may implement additional protections via:
```crystal
require "crypto-secret/not"
require "crypto-secret/bidet"
# `Not` isn't actually a secret and does none of what the comments say
# Replace `Not` with a secure implementation like [Sodium::SecureBuffer](https://didactic-drunk.github.io/sodium.cr/master/Sodium/SecureBuffer.html)
secret = Crypto::Secret::Not.new 32
# Bidet is a minimal but fast secret implementation
secret = Crypto::Secret::Bidet.new 32
# Don't forget to wipe!
secret.wipe do
secret.readonly do |slice|
# May only read slice

View File

@ -1,2 +1,2 @@
require "./secret"
require "./*"
require "./not"
require "./bidet"