Skip to content

Instantly share code, notes, and snippets.

@einstein95
einstein95 / bsw_decode.py
Last active February 8, 2025 06:49
Very poor attempt at a Bank Street Writer (IBM PC) file decoder
# Despite what's written about the Apple II version, the PC version of Bank Street Writer
# is a basic CGA word processor that uses ASCII-encoded files with some control codes.
# Files are stored without an extension, any files with an extension are password-protected.
# The extension is an encoded version of the password. Passwords are limited to 3 characters as a result.
import sys
control_codes = {
243: '{pb}',
244: '<c>',