Skip to main content

Glyph-based file obfuscation with intentional access control

Project description

Glyphlock

This module contains a simple implementation of glyph-based file obfuscation with optional access control.


What glyphlock does

Glyphlock converts a file into a deterministic representation made up of Unicode Egyptian hieroglyphs.

The original file:

  • is removed
  • is replaced with a .glyph file
  • is no longer readable as plain text

The transformation is fully reversible and does not modify the original data.


What glyphlock is for

Glyphlock is meant to prevent accidental or casual access to files.

It is useful when:

  • files should not be readable at a glance
  • sensitive data should not be opened unintentionally
  • projects need to be parked safely on disk
  • access should require intent

This tool is not encryption and is not designed to protect against determined offline attacks.


Access control

Glyphlock supports optional access gating.

When enabled:

  • a password is required to decode files
  • passwords are verified using a key derivation function
  • passwords are never stored directly

An optional recovery key can also be generated.

The recovery key:

  • is shown once
  • is stored as a hash
  • can be used if the password is lost

If both the password and recovery key are lost, the file cannot be recovered.


File behavior

When encoding:

  • the original file is replaced with filename.glyph
  • the original file extension is stored in the header
  • file permissions are preserved
  • the file payload is checksummed

When decoding:

  • the original file is restored exactly
  • permissions are restored
  • corrupted or modified files fail to decode

All file operations use atomic replacement to minimize the risk of data loss.


Directory handling

When operating on directories, glyphlock walks the directory tree recursively.

The following are skipped automatically:

  • symbolic links
  • hidden directories
  • version control metadata (.git, .hg, .svn)
  • virtual environments (.venv, env)
  • Python cache directories (__pycache__)
  • editor configuration directories

Only user-authored files are processed by default.

How to use this module

Glyphlock is used as a command-line tool.

Encode a single file:


glyphlock encode file.txt

Decode a file:

glyphlock decode file.glyph

Encode a directory with a password and recovery key:

glyphlock encode-dir project --lock --recovery

Decode a directory:

glyphlock decode-dir project

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

glyphlock-0.1.0.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

glyphlock-0.1.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file glyphlock-0.1.0.tar.gz.

File metadata

  • Download URL: glyphlock-0.1.0.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for glyphlock-0.1.0.tar.gz
Algorithm Hash digest
SHA256 82490a3f243281e8e7a1ccb20864466c54023da10f75ae979ef423db6fa15ceb
MD5 bd5b36685e18c220829ea9243c8524b1
BLAKE2b-256 e3f0b83ae3eeeb76162d0684925f5f61ced898e2bddfcda967b5e1bbfcabbb30

See more details on using hashes here.

File details

Details for the file glyphlock-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: glyphlock-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for glyphlock-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5779f2ff426aa822ddc0c2d652f97da29471fa9609843dfbe76c68430fefba18
MD5 2bd9f484ec0c5af167eebe9a5375956f
BLAKE2b-256 62afd17885f7d44e1c74980afd4f5f6b5919313b5e90b35693d114444d200727

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page