8000 GitHub - ll3006/crib-dragger: A terminal-based editor for crib dragging, powered by textual.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

ll3006/crib-dragger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

CribDragger

CribDragger is a terminal editor to make crib dragging easy.

CribDragger will display a generic ciphertext and run a function that takes in changes in plaintext and then replaces it.

Example:

from crib_dragger import CribDragger, PartialString

with open("./ciphertext.txt", "r") as f:
	ciphertext = f.read()

def on_change(prev: PartialString = None, current: PartialString = None):
	if prev and current:
		for i, (x,y) in enumerate(zip(prev, current)):
			if x != y:
				if y != None:
					key.add_known(i, ciphertext[i], y)
				else:
					key.remove(i)
			
	return some_decrypt_function(ciphertext, key)

CribDragger(ciphertext, on_change).run()

There are still many unresolved issues at this stage but the program should be fairly usable.

This project initial was thought as a fork of this repo but eventually I figured building it from scratch would've just been easier. Still, shoutout to the original program.

About

A terminal-based editor for crib dragging, powered by textual.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0