{"id":28744287,"url":"https://github.com/priyanshujain/crypto","last_synced_at":"2025-06-16T11:39:23.904Z","repository":{"id":38417027,"uuid":"496482801","full_name":"priyanshujain/crypto","owner":"priyanshujain","description":"A simplified crypto module using go crypto library","archived":false,"fork":false,"pushed_at":"2022-06-05T10:53:02.000Z","size":196,"stargazers_count":2,"open_issues_count":7,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-20T22:36:42.168Z","etag":null,"topics":["aes","cryptography","hmac","rsa","sha"],"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/priyanshujain.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":"2022-05-26T04:41:01.000Z","updated_at":"2023-02-06T06:38:49.000Z","dependencies_parsed_at":"2022-09-26T21:21:08.692Z","dependency_job_id":null,"html_url":"https://github.com/priyanshujain/crypto","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/priyanshujain/crypto","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/priyanshujain%2Fcrypto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/priyanshujain%2Fcrypto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/priyanshujain%2Fcrypto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/priyanshujain%2Fcrypto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/priyanshujain","download_url":"https://codeload.github.com/priyanshujain/crypto/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/priyanshujain%2Fcrypto/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260152012,"owners_count":22966615,"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":["aes","cryptography","hmac","rsa","sha"],"created_at":"2025-06-16T11:39:20.512Z","updated_at":"2025-06-16T11:39:23.890Z","avatar_url":"https://github.com/priyanshujain.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# crypto\n\nsimplified crypto module using go crypto library. We are not implementing any crypto algorithms on our own but taking it \nfrom NIST approved implementation and providing an easy interface to use them.\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/priyanshujain/crypto.svg)](https://pkg.go.dev/github.com/priyanshujain/crypto)\n[![Test Status](https://github.com/priyanshujain/crypto/actions/workflows/tests.yml/badge.svg?branch=master)](https://github.com/priyanshujain/crypto/actions)\n[![codecov](https://codecov.io/gh/priyanshujain/crypto/branch/master/graph/badge.svg?token=8UY0NTGGRM)](https://codecov.io/gh/priyanshujain/crypto)\n[![Go Report Card](https://goreportcard.com/badge/github.com/priyanshujain/crypto)](https://goreportcard.com/report/github.com/priyanshujain/crypto)\n\n## Install\n\n```\ngo get github.com/priyanshujain/crypto\n```\n\n## Testing\n\n1. perform tests\n```\nmake test\n```\n\n2. produces coverage\n```\nmake cover\n```\n\n3. run go vet linter\n```\nmake lint\n```\n\n## Packages \n1. cipher: It includes both symmetric(AES) and asymmetric(RSA) key encryption.\n\n2. signature: It includes signature algorithms like HMAC, RSA etc.\n\n3. hash: It has common hash functions including SHA1 and SHA256.\n\n4. Keystore: It implements key store and key generation for common cryptographic algorithms.\n\n\n### cipher\n\n#### AES\n\n\nIt support the following modes of operations\n1. CBC (https://en.wikipedia.org/wiki/Block_cipher_mode_of_operation#Cipher_block_chaining_(CBC))\n2. CTR (https://en.wikipedia.org/wiki/Block_cipher_mode_of_operation#Counter_(CTR))\n3. CFB (https://en.wikipedia.org/wiki/Block_cipher_mode_of_operation#Cipher_feedback_(CFB))\n\nand the following padding schemes\n1. PKCS5 (https://en.wikipedia.org/wiki/Padding_(cryptography)#PKCS#5_and_PKCS#7)\n2. PKCS7\n\n#### RSA\n\nIt supports the following encryption schemes\n1. PKCS1 (https://datatracker.ietf.org/doc/html/rfc3447)\n2. OAEP (https://en.wikipedia.org/wiki/Optimal_asymmetric_encryption_padding)\n\n### signature\n\n#### RSA\nIt supports the following signature schemes\n1. PKCS1 (https://en.wikipedia.org/wiki/PKCS_1)\n2. PSS (https://en.wikipedia.org/wiki/Probabilistic_signature_scheme)\n\n## Notes\n\n1. It uses pem format for all public key infrastructure. ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpriyanshujain%2Fcrypto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpriyanshujain%2Fcrypto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpriyanshujain%2Fcrypto/lists"}