{"id":20566240,"url":"https://github.com/telkomdev/c-crypsi","last_synced_at":"2025-03-06T08:47:04.128Z","repository":{"id":191188935,"uuid":"684111266","full_name":"telkomdev/c-crypsi","owner":"telkomdev","description":"A Header only Custom crypto utility for C/C++ based on Openssl Crypto Library to make life easier","archived":false,"fork":false,"pushed_at":"2023-09-11T07:30:18.000Z","size":106,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-16T20:19:03.934Z","etag":null,"topics":["aes","c","cryptography","digest","header-only","openssl"],"latest_commit_sha":null,"homepage":"","language":"C","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/telkomdev.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":"2023-08-28T13:31:42.000Z","updated_at":"2024-04-17T03:20:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"b7221031-69da-41e3-9df1-928e68430a96","html_url":"https://github.com/telkomdev/c-crypsi","commit_stats":null,"previous_names":["telkomdev/c-crypsi"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telkomdev%2Fc-crypsi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telkomdev%2Fc-crypsi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telkomdev%2Fc-crypsi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telkomdev%2Fc-crypsi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/telkomdev","download_url":"https://codeload.github.com/telkomdev/c-crypsi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242179259,"owners_count":20084940,"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","c","cryptography","digest","header-only","openssl"],"created_at":"2024-11-16T04:40:43.481Z","updated_at":"2025-03-06T08:47:04.082Z","avatar_url":"https://github.com/telkomdev.png","language":"C","readme":"## c-crypsi (Crypto Utility for C and C++)\n\nCustom crypto utility for C/C++ based on `openssl` crypto library to make life easier\n\n[![c-crypsi CI](https://github.com/telkomdev/c-crypsi/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/telkomdev/c-crypsi/actions/workflows/ci.yml)\n\n### Install\n\nIts `header only`, just import to your project\n```c\n#include \"crypsi.h\"\n\nint main(int argc, char** argv) {\n\n}\n```\n\n### c-crypsi is compatible with each other with the following libraries\n- NodeJs https://github.com/telkomdev/crypsi\n- Golang https://github.com/telkomdev/go-crypsi\n- Python https://github.com/telkomdev/pycrypsi\n- C# (.NET) https://github.com/telkomdev/NetCrypsi\n- Java/JVM https://github.com/telkomdev/jcrypsi\n- Javascript (React and Browser) https://github.com/telkomdev/crypsi.js\n- PostgreSQL https://github.com/telkomdev/pgcrypsi\n- MySQL https://github.com/telkomdev/crypsi-mysql-udf\n\n### Features\n- Asymmetric encryption with RSA ✔️\n- Generate RSA private and public key ✔️\n- Digital Signature with RSA private and public key using PSS ✔️\n- Symmetric encryption with AES (GCM, CBC) ✔️\n- Message authentication code with HMAC ✔️\n- Generate Hash with Common DIGEST Algorithm ✔️\n\n#### Usage\nC\n```c\n#include \u003cstdio.h\u003e\n#include \u003cstdlib.h\u003e\n#include \u003cstring.h\u003e\n#include \"crypsi.h\"\n\nint main(int argc, char** argv) {\n    printf(\"hello\\n\");\n\n    char* message = \"wuriyanto\";\n\n    unsigned char* dst_digest;\n    int dst_digets_len;\n\n    if(crypsi_sha512(message, strlen(message), \u0026dst_digest, \u0026dst_digets_len) != 0) {\n        printf(\"digest error\\n\");\n        return -1;\n    }\n\n    printf(\"message len: %d\\n\", dst_digets_len);\n\n    printf(\"digest result: %s\\n\", dst_digest);\n\n    free((void*) dst_digest);\n\n    return 0;\n}\n```\n\nC++\n```CPP\n#include \u003ciostream\u003e\n#include \"crypsi.h\"\n\nint main(int argc, char** argv)\n{\n\n    const char* message = \"wuriyanto\";\n\n    unsigned char* dst_digest;\n    unsigned int dst_digets_len;\n\n    if(crypsi_sha512((const unsigned char*) message, strlen(message), \u0026dst_digest, \u0026dst_digets_len) != 0) {\n        printf(\"digest error\\n\");\n        return -1;\n    }\n\n    printf(\"message len: %d\\n\", dst_digets_len);\n\n    printf(\"digest result: %s\\n\", dst_digest);\n    \n    delete dst_digest;\n\n    return 0;\n}\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftelkomdev%2Fc-crypsi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftelkomdev%2Fc-crypsi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftelkomdev%2Fc-crypsi/lists"}