Skip to content

Generating string variants constrained by Levenshtein distance #76

Description

@sanchopansa

Hello,

I'm trying to recover a password I forgot for one of my crypto wallets.

What I want to do is use a couple of "master" passwords that I know I use frequently and based on them generate a (much) larger number of candidate passwords by modifying the "master" ones in hope of finding the variant that I used for the wallet.

Essentially, I want to generate all possible strings (including special characters) which are at a given Levenshtein distance for a key. For example, given a string such as "asdf123" and a Levenshtein distance of 1, the output should be all strings which are at a Levenshtein distance of 1 from "asdf123".

Is this possible to do this with the liblevenshtein-java library?

Thank you for your time!

P. S. I saw a seemingly related question here: #5, but if I understand correctly, the provided answer is doing something very different: namely, given a dictionary (words in a document) and a query term, it finds all words in the document, which are at a given Levenshtein distance to the query term. In my case, such a "dictionary" doesn't exist (it's what I'm trying to generate)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions