never-store
Screens text before it is stored: card numbers, IBANs, API keys, private keys and labelled passwords are refused.
Built and tested in the harness, and not in the public repository yet. The install line and the source link appear here when it is.
What it is
never-store.
Looks at a string a venture is about to write and answers whether it has the shape of something that must never be kept: a payment card number, an IBAN, an API key, a private key, or a password written with a label. It answers with the first kind it finds, or nothing. It is a screen, not a classifier: every rule is a character scan, linear in the length of the text, so a false positive or a false negative can be read off the code. Cards must match a known issuer’s prefix and length and pass Luhn; IBANs must have their country’s length and pass mod-97. Cards from issuers outside its list pass unscreened. No I/O, no ports and no dependencies.
From the crate’s own src/lib.rs description.
History
Changelog.
Not released yet. Its changelog starts with its first release.
One of 95 crates in the harness, all of them MIT.