From 437b3da6b13412b8c70b6638b14cefffbf51f50d Mon Sep 17 00:00:00 2001 From: Didactic Drunk <1479616+didactic-drunk@users.noreply.github.com> Date: Tue, 15 Jun 2021 15:55:03 -0700 Subject: [PATCH] README.md: Switch Not to Bidet --- README.md | 8 ++++---- src/crypto-secret/crypto-secret.cr | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index f8b0883..5c1ef88 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/src/crypto-secret/crypto-secret.cr b/src/crypto-secret/crypto-secret.cr index 40d81e7..f35678f 100644 --- a/src/crypto-secret/crypto-secret.cr +++ b/src/crypto-secret/crypto-secret.cr @@ -1,2 +1,2 @@ -require "./secret" -require "./*" +require "./not" +require "./bidet"