DEV Community

Mark0
Mark0

Posted on

Welcoming ObfusGit

ObfusGit is a Python script designed to help developers share their code online while making it difficult for AI companies and other scrapers to easily consume and analyze the source code. It achieves this by allowing users to set up a local Git repository, commit code as usual, and then run an obfusgit sync command. This command generates a fully encrypted and encoded copy of the repository, which can then be pushed to a public location, effectively obscuring the true contents from casual inspection or automated scraping tools.

The tool operates by setting up a public-facing .obfusgit-public folder alongside the private repository. Users interact with their private repo, and when ready to publish, obfusgit setup-repos prepares the public version using an encryption key. To reverse the process, someone can clone the public repository and use obfusgit reverse-repos with the shared key to decrypt and decode the code back to its plaintext form in a new folder.

While ObfusGit offers a novel approach to code privacy, it comes with limitations. Developed quickly using a local AI model, it's primarily intended for static projects and not for continuous tracking of actual changes, as the entire commit history is lost during the public cloning and decoding process. Any file modification results in re-encryption, and private commit history isn't preserved publicly. It's a minimal tool with no current plans for extensive expansion, but welcomes community contributions.


Read Full Article

Top comments (0)