#blip #bitflips #bitsquatting

bitflip

Provides functions to generate bitflips of binary and UTF-8 strings

1 unstable release

0.1.0 Sep 21, 2023

#1081 in Text processing

Download history 43/week @ 2024-06-24 11/week @ 2024-07-01 25/week @ 2024-07-08 29/week @ 2024-07-15 52/week @ 2024-07-22 25/week @ 2024-07-29 72/week @ 2024-08-05 25/week @ 2024-08-12 24/week @ 2024-08-19 23/week @ 2024-08-26 40/week @ 2024-09-02 23/week @ 2024-09-09 19/week @ 2024-09-16 40/week @ 2024-09-23 48/week @ 2024-09-30 15/week @ 2024-10-07

124 downloads per month
Used in typomania

MIT/Apache

15KB
131 lines

bitflip-rs

This crate provides functions to generate bitflips of binary and UTF-8 strings. This is useful to catch potential instances of bitsquatting, where an attacker may register a crate/domain name/whatever at a bitflipped version of their target.

This crate is essentially a port of the Python blip package created by Zack Allen.

Usage

A very simple example would be:

for s in bitflip::ascii_str("ab") {
    print!("{s} ");
}

Which outputs:

`b cb eb ib qb Ab !b ac a` af aj ar aB a"

See the API documentation for more information on what's available.

Code of Conduct

The Rust Foundation has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Contributing

See CONTRIBUTING.md.

Licenses

Rust is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0), with documentation portions covered by the Creative Commons Attribution 4.0 International license..

See LICENSE-APACHE, LICENSE-MIT, LICENSE-documentation, and COPYRIGHT for details.

You can also read more under the Foundation's intellectual property policy.

Trademark

The Rust Foundation owns and protects the Rust and Cargo trademarks and logos (the "Rust Trademarks").

If you want to use these names or brands, please read the media guide.

Other Policies

You can read about other Rust Fondation policies in the footer of the Foundation website.

No runtime deps