{"id":20373411,"url":"https://github.com/arxiver/rsam","last_synced_at":"2025-07-24T22:06:23.114Z","repository":{"id":143423194,"uuid":"467913155","full_name":"arxiver/rsam","owner":"arxiver","description":"Modified package for RSA encryption/decryption to allow large message encryption/decryption, to allow encryption through private key and decryption through public key and signature through public key and private key and vice versa. i.e. Additional functionalities to the existing crypto package https://pkg.go.dev/github.com/gossl/rsam","archived":false,"fork":false,"pushed_at":"2025-03-12T20:59:30.000Z","size":42,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T06:51:41.920Z","etag":null,"topics":["crypto","cryptography","go","go-package","golang","gopher","package","rsa","rsa-algorithm","rsa-encryption","rsa-key-encryption","rsa-key-pair"],"latest_commit_sha":null,"homepage":"","language":"Go","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/arxiver.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null},"funding":{"github":"rrrokhtar","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2022-03-09T12:14:34.000Z","updated_at":"2025-03-12T20:59:33.000Z","dependencies_parsed_at":"2023-08-17T23:16:54.129Z","dependency_job_id":null,"html_url":"https://github.com/arxiver/rsam","commit_stats":null,"previous_names":["arxiver/rsam"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arxiver%2Frsam","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arxiver%2Frsam/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arxiver%2Frsam/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arxiver%2Frsam/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arxiver","download_url":"https://codeload.github.com/arxiver/rsam/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248530604,"owners_count":21119595,"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":["crypto","cryptography","go","go-package","golang","gopher","package","rsa","rsa-algorithm","rsa-encryption","rsa-key-encryption","rsa-key-pair"],"created_at":"2024-11-15T01:18:12.995Z","updated_at":"2025-04-12T06:51:46.591Z","avatar_url":"https://github.com/arxiver.png","language":"Go","funding_links":["https://github.com/sponsors/rrrokhtar"],"categories":[],"sub_categories":[],"readme":"# rsa-modified (rsam)\n\nSupports additional functionalites and important stuff must be done in some corner cases and some specific applications\n\nModified package for RSA encryption and decryption to allow **large** message encryption and decryption and to **allow encryption through private key and decryption through public key** and signature through public key and private key and vice versa. i.e. Additional functionalities to the existing crypto package\n\n\n### Installation \n\n```shell\ngo get \"github.com/gossl/rsam\"\n```\n\n### Usage\n\n```go\npackage main\n\nimport (\n\t\"bytes\"\n\t\"crypto/sha256\"\n\t\"fmt\"\n\n\t\"github.com/gossl/rsam\"\n)\n\nfunc main() {\n\tpriv, pub, err := rsam.GeneratePairKeys(2048)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tmsg := []byte(\"hello world\")\n\tciphertext, err := rsam.EncryptWithPrivateKey(msg, priv, sha256.New())\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tplaintext, err := rsam.DecryptWithPublicKey(ciphertext, pub, sha256.New())\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tif !bytes.Equal(msg, plaintext) {\n\t\tpanic(nil)\n\t}\n\tfmt.Println(string(plaintext))\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farxiver%2Frsam","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farxiver%2Frsam","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farxiver%2Frsam/lists"}