{"id":28524560,"url":"https://github.com/aerth/argon2-xor","last_synced_at":"2025-07-06T11:32:17.479Z","repository":{"id":64303227,"uuid":"256854034","full_name":"aerth/argon2-xor","owner":"aerth","description":"Encrypt and Decrypt Files (password based symmetric encryption)","archived":false,"fork":false,"pushed_at":"2020-04-19T22:26:40.000Z","size":35,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-09T11:11:18.248Z","etag":null,"topics":["argon2","hmac","xor-cipher"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aerth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-18T21:12:21.000Z","updated_at":"2020-04-20T16:42:48.000Z","dependencies_parsed_at":"2023-01-15T10:00:43.408Z","dependency_job_id":null,"html_url":"https://github.com/aerth/argon2-xor","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/aerth/argon2-xor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aerth%2Fargon2-xor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aerth%2Fargon2-xor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aerth%2Fargon2-xor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aerth%2Fargon2-xor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aerth","download_url":"https://codeload.github.com/aerth/argon2-xor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aerth%2Fargon2-xor/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263892881,"owners_count":23526172,"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":["argon2","hmac","xor-cipher"],"created_at":"2025-06-09T11:10:23.349Z","updated_at":"2025-07-06T11:32:17.473Z","avatar_url":"https://github.com/aerth.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# argon2-xor\n\nsimple XOR stream with HMAC and random salt\n\nUsing the variable output length of the Argon2id hash function, we are able to derive a key to use with XOR stream cipher.\n\nWe generate a random salt, Encrypt-then-MAC, and save to a file (or stdout).\n\nTo decrypt, we extract the salt and MAC, hash the password (with given salt), and XOR the rest of the file.\n\nNote: This is a toy program, and hasn't been vetted by cryptographers or security professionals.\n\n## Basic Usage\n#### Encryption\n```\nargon2-xor -out file.enc plaintext.txt\n```\n#### Decryption\n```\nargon2-xor -d -out plaintext.txt file.enc\n```\n#### CLI Flags\n```\n  -d\tdecrypt mode\n  -hmac string\n    \thash function for use with HMAC: sha256, sha384, or sha512 (default \"sha512\")\n  -m int\n    \targon2 mem parameter (default 10000)\n  -out string\n    \toutput file (default \"stdout\")\n  -p int\n    \targon2 thread/parallelism parameter (default 1)\n  -saltlen int\n    \tuse custom salt size (default 1024)\n  -t int\n    \targon2 time parameter (default 100)\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faerth%2Fargon2-xor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faerth%2Fargon2-xor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faerth%2Fargon2-xor/lists"}