Skip to content

linuscooper/rgxtodfa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RegEx Password Demo

A small side project exploring the use of regular expressions and finite automata for password verification.

The core idea: having users enter two different strings that both match a shared pattern — effectively doubling the entropy of the password without significantly increasing the memory load.

How It Works

Under the hood, the regex is converted into a Deterministic Finite Automaton using Brzozowski derivatives, incrementally building a DFA by repeatedly applying derivatives of the regex with respect to each character in the input string.

Currently it supports the following operations:

  • Kleene Star: a*
  • Union: a|b
  • Concatenation: ab
  • Groups: (a|b)

Built With

  • HTML5 + CSS3
  • Vanilla JavaScript (ES Modules)
  • Pyodide – to run Python code client-side
  • Viz.js – for Graphviz-style rendering in the browser

Made out of curiosity and for exploration.

About

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors