{"id":37195922,"url":"https://github.com/mlesniak/go-keyz","last_synced_at":"2026-01-14T22:47:20.921Z","repository":{"id":137439661,"uuid":"222892352","full_name":"mlesniak/go-keyz","owner":"mlesniak","description":"Poor man's CLI public key encryption using Go's standard library (RSA and AES)","archived":false,"fork":false,"pushed_at":"2019-11-21T06:09:28.000Z","size":34,"stargazers_count":13,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2023-03-11T02:08:58.897Z","etag":null,"topics":["cli","golang","rsa","utility"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mlesniak.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-11-20T08:51:28.000Z","updated_at":"2024-06-19T10:11:34.766Z","dependencies_parsed_at":null,"dependency_job_id":"4b2b023a-f1f7-4fa5-92cd-011851971d23","html_url":"https://github.com/mlesniak/go-keyz","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/mlesniak/go-keyz","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlesniak%2Fgo-keyz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlesniak%2Fgo-keyz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlesniak%2Fgo-keyz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlesniak%2Fgo-keyz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mlesniak","download_url":"https://codeload.github.com/mlesniak/go-keyz/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlesniak%2Fgo-keyz/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28436826,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T22:37:52.437Z","status":"ssl_error","status_checked_at":"2026-01-14T22:37:31.496Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cli","golang","rsa","utility"],"created_at":"2026-01-14T22:47:20.028Z","updated_at":"2026-01-14T22:47:20.906Z","avatar_url":"https://github.com/mlesniak.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://github.com/mlesniak/go-keyz/workflows/Go/badge.svg)](https://github.com/mlesniak/go-keyz/actions?query=workflow%3AGo)\n[![Code of Conduct](https://img.shields.io/badge/%E2%9D%A4-code%20of%20conduct-orange.svg?style=flat)](CODE_OF_CONDUCT.md)\n\n# Overview\n\nThis is a simple example of using standard go libraries (\"batteries included\") to encrypt and decrypt files with\npublic key cryptography using [RSA](https://en.wikipedia.org/wiki/RSA_(cryptosystem)).\n\n## Compile, Build and Test\n\nUse the standard go commands, i.e.\n\n    go test\n    go build\n\nto generate a binary named `keyz`.\n\n## General usage\n\nFirst, generate your own public and private key pair with\n\n    keyz -k\n\nYour key pair will be saved as `private.key` and `public.key`, respectively. Note that the pair is compatible to the\nstandard PEM format, i.e. you could also use openssl to generate your key pair using\n\n    openssl genrsa -f4 -out private.key 4096\n    openssl rsa -in private.key -outform PEM -pubout -out public.key\n\nData is always passed from stdin to stdout, hence use pipes correcly. To **encrypt** data, execute\n\n    keyz -e -p \u003cpublic key name\u003e \u003cinput-file \u003eoutput-file\n\nand to **decrypt** using your private key, use\n\n    keyz -d \u003cencrypted-input-file \u003eplaintext-output-file\n\n## Usage for submitting files over networks using public-key cryptography\n\n`keyz` can be used to submit files over networks using [netcat](https://en.wikipedia.org/wiki/Netcat) without\nthe necessity to exchange passwords. On the receiving client, start a netcat server on port 1234 which redirects read\ndata to keyz with\n\n    nc -l 1234|keyz -d\n\nand on the sending client submit a file to the server (here: localhost) with\n\n    keyz -e -p public.key \u003cmain.go|nc localhost 1234\n\n## License\n\nAs always, the source code is licensed under [Apache license 2.0](https://raw.githubusercontent.com/mlesniak/go-keyz/master/LICENSE).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlesniak%2Fgo-keyz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmlesniak%2Fgo-keyz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlesniak%2Fgo-keyz/lists"}