{"id":18131499,"url":"https://github.com/crownedgrouse/preach","last_synced_at":"2025-04-06T15:29:14.993Z","repository":{"id":71843129,"uuid":"123348947","full_name":"crownedgrouse/preach","owner":"crownedgrouse","description":"[WIP] Phi base Random Encoder Aimed for Cryptography Hardening","archived":false,"fork":false,"pushed_at":"2019-03-02T10:00:11.000Z","size":321,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-12T21:34:40.656Z","etag":null,"topics":["cryptography","obfuscation","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/crownedgrouse.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-28T22:16:46.000Z","updated_at":"2021-02-02T22:53:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"b4dc0644-2d77-45f9-8a8a-42d334d8c302","html_url":"https://github.com/crownedgrouse/preach","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crownedgrouse%2Fpreach","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crownedgrouse%2Fpreach/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crownedgrouse%2Fpreach/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crownedgrouse%2Fpreach/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crownedgrouse","download_url":"https://codeload.github.com/crownedgrouse/preach/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247502591,"owners_count":20949296,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cryptography","obfuscation","rust"],"created_at":"2024-11-01T12:07:41.187Z","updated_at":"2025-04-06T15:29:14.987Z","avatar_url":"https://github.com/crownedgrouse.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Phi base Random Encoder Aimed for Cryptography Hardening\n\n## Overview\n\n`preach` is a Rust program using the properties of the Phi base to harden cryptography.\nCryptography is based on the fact that a payload crypted by a symmetric key give always same result.\n\n`preach` allow multiple results with same payload and key, but still allowing recipient to decrypt.\n\n## How it works ?\n\n`preach` encode each byte (0-256) on three bytes on a random choice between all forms of integer coded in Phi base.\n\n## Why ?\n\nAttacker can try brut force if he know that a payload is always starting the same, or contain always\nsame data at a given position.\nWith `preach`, attacker cannot know if the payload changed, or key changed, or both.\nSome bytes can be encoded up to 233 different way on three bytes.\nA same payload will almost never be same twice again and if it happen the symmetric key would have been changed already.\n\n## How to use it ?\n\n`preach` have to be used on payload *before* crypting. As size of payload becomes three time more,\ncompressing is recommanded *after* crypting in order not to help attacker with compression headers.\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrownedgrouse%2Fpreach","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrownedgrouse%2Fpreach","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrownedgrouse%2Fpreach/lists"}