Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmillr committed Oct 19, 2023
1 parent 201e67b commit dfb4355
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ import { xchacha20poly1305 } from '@noble/ciphers/chacha';
- [FF1 format-preserving encryption](#ff1)
- [Managed nonces](#managed-nonces)
- [Guidance](#guidance)
- [Which cipher should I pick?](#which-cipher-should-i-pick)
- [How to encrypt properly](#how-to-encrypt-properly)
- [Nonces](#nonces)
- [Encryption limits](#encryption-limits)
Expand Down Expand Up @@ -338,6 +339,12 @@ For `decrypt`, first `nonceBytes` of ciphertext are treated as nonce.

## Guidance

### Which cipher should I pick?

XChaCha20-Poly1305 is the safest bet these days.
AES-GCM-SIV is the second safest.
AES-GCM is the third.

### How to encrypt properly

- Use unpredictable key with enough entropy
Expand Down

0 comments on commit dfb4355

Please sign in to comment.