homoglyphs

Crates.iohomoglyphs
lib.rshomoglyphs
version0.1.0
sourcesrc
created_at2022-09-14 14:30:31.339228
updated_at2022-09-14 14:30:31.339228
descriptiongenerate all homoglyphs for a given input sentence
homepage
repositoryhttps://github.com/shadawck/homoglyph
max_upload_size
id665836
size47,150
Shadawck (shadawck)

documentation

https://docs.rs/homoglyphs

README

Homoglyphs

Generate all homoglyphs for a given input sentence.

An homoglyph is one of two or more graphemes, characters, or glyphs with shapes that appear identical or very similar. The designation is also applied to sequences of characters sharing these properties.

The Unicode character set contains many strongly homoglyphic characters known as "confusables". These present security risks in a variety of situations. One might deliberately spoof a domain name by replacing one character with its homoglyph, thus creating a second domain name, not readily distinguishable from the first, that can be exploited in phishing. - Wikiepdia

Install

cargo install homoglyphs

Examples

Generate all possible homoglyphs with all the confusable characters

homoglyphs -a "rust"

Generate homoglyphs with default settings (100 homoglyphs, 8 confusables for each characters of input sentence)

homoglyphs "rust is nice"

Generate 'n' homoglyphs

homoglyphs -n 3000 "rust is awesome"

Generate homoglyphs possible for the given number of confusable

homoglyphs -n 3000 "rust is incredible"

Try to generate a maximum of 'n' homoglyphs with 'c' confusable for each characters of input sentence

homoglyphs -n 500 -c 6 "rust is the best"

Print output in different format

In array with ascii, empty, markdown, modern and psql styles

homoglyphs -n 25 "rust is the best" -f markdown

In json or just raw

homoglyphs -n 25 "rust is the best" -f json
Commit count: 28

cargo fmt