{"id":26507715,"url":"https://github.com/jacksonwalters/open-encrypt","last_synced_at":"2025-03-20T23:33:08.815Z","repository":{"id":255570422,"uuid":"852355878","full_name":"jacksonwalters/open-encrypt","owner":"jacksonwalters","description":"Encrypted messaging webapp using lattice-based methods in Python + PHP + SQL","archived":false,"fork":false,"pushed_at":"2024-11-26T05:51:14.000Z","size":87,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-26T06:30:06.301Z","etag":null,"topics":["cryptography","encryption","homomorphic-encryption","lattice-based","lattice-based-cryptography","module-lwe","php","post-quantum","post-quantum-cryptography","python","ring-lwe","sql"],"latest_commit_sha":null,"homepage":"https://open-encrypt.com","language":"PHP","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/jacksonwalters.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":"2024-09-04T17:02:59.000Z","updated_at":"2024-11-26T05:51:18.000Z","dependencies_parsed_at":"2024-11-26T06:25:53.289Z","dependency_job_id":"20aa8721-84b0-48d6-912d-23f7cc63921c","html_url":"https://github.com/jacksonwalters/open-encrypt","commit_stats":null,"previous_names":["jacksonwalters/open-encrypt"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacksonwalters%2Fopen-encrypt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacksonwalters%2Fopen-encrypt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacksonwalters%2Fopen-encrypt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacksonwalters%2Fopen-encrypt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jacksonwalters","download_url":"https://codeload.github.com/jacksonwalters/open-encrypt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244711713,"owners_count":20497415,"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","encryption","homomorphic-encryption","lattice-based","lattice-based-cryptography","module-lwe","php","post-quantum","post-quantum-cryptography","python","ring-lwe","sql"],"created_at":"2025-03-20T23:33:08.384Z","updated_at":"2025-03-20T23:33:08.810Z","avatar_url":"https://github.com/jacksonwalters.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# open-encrypt\nFull-stack encrypted messaging application using lattice-based methods in Python + PHP + SQL.\n\n**NOTE**: This is a demo for educational purposes only. It is not meant for real-world use.\n\n**ENCRYPTION METHODS**: ring-LWE, module-LWE\n\n**RESOURCES**:\n\n- ring-LWE in Python: https://blog.openmined.org/build-an-homomorphic-encryption-scheme-from-scratch-with-python/\n- ring-LWE math: https://math.colorado.edu/~kstange/teaching-resources/crypto/RingLWE-notes.pdf\n- module-LWE in Python: https://cryptographycaffe.sandboxaq.com/posts/kyber-01/\n- Red Hat Post-Quantum/Lattices: https://www.redhat.com/en/blog/post-quantum-cryptography-lattice-based-cryptography\n- NIST Post-Quantum: https://csrc.nist.gov/projects/post-quantum-cryptography\n- Latticed-based cryptography: https://thelatticeclub.com\n\n---\n\n**SQL**: \n\n- Three tables are required to store login_info, messages, and public_keys.\n- Passwords are hashed using standard hashing. \n- Secure, random tokens stored for user sessions.\n- Messages are stored encrypted. The inflation ratio is ~13.7 for ring-LWE.\n- For ring-LWE, public keys are a `string` representing two (cyclotomic, modular) polynomials as `int` arrays.\n- For module-LWE, public keys are a `string` representing a matrix `A` and vector `t` with (cyclotomic, modular) polynomial coefficients.\n\n**PHP**:\n\nUsed to handle basic account creation, login, and SQL insertions/lookups. \n\n**Python**:\n\nPython scripts are executed directly using `shell_exec`. Output is printed and passed back as a string.\n  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacksonwalters%2Fopen-encrypt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjacksonwalters%2Fopen-encrypt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacksonwalters%2Fopen-encrypt/lists"}