{"id":13659214,"url":"https://github.com/diglol/crypto","last_synced_at":"2025-04-12T14:40:35.100Z","repository":{"id":44357626,"uuid":"398510327","full_name":"diglol/crypto","owner":"diglol","description":"Diglol Crypto for Kotlin Multiplatform.","archived":false,"fork":false,"pushed_at":"2024-06-10T18:17:02.000Z","size":2026,"stargazers_count":32,"open_issues_count":9,"forks_count":5,"subscribers_count":1,"default_branch":"trunk","last_synced_at":"2025-03-26T09:11:27.730Z","etag":null,"topics":["aes","aes-cbc","aes-gcm","argon2","crypto","curve25519","ed25519","encrypt-then-mac","hash","hmac","hotp","kotlin","multiplatform","pbkdf2","poly1305","random","totp","x25519","xchacha20","xchacha20-poly1305"],"latest_commit_sha":null,"homepage":"","language":"C","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/diglol.png","metadata":{"files":{"readme":"README-zh.md","changelog":"CHANGELOG.md","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":"2021-08-21T08:50:22.000Z","updated_at":"2025-03-08T14:53:43.000Z","dependencies_parsed_at":"2023-02-17T23:01:23.923Z","dependency_job_id":"aede7d7c-6bb2-4c8b-a9a5-d963e6c97b1e","html_url":"https://github.com/diglol/crypto","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diglol%2Fcrypto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diglol%2Fcrypto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diglol%2Fcrypto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diglol%2Fcrypto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/diglol","download_url":"https://codeload.github.com/diglol/crypto/tar.gz/refs/heads/trunk","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248582329,"owners_count":21128357,"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","aes-cbc","aes-gcm","argon2","crypto","curve25519","ed25519","encrypt-then-mac","hash","hmac","hotp","kotlin","multiplatform","pbkdf2","poly1305","random","totp","x25519","xchacha20","xchacha20-poly1305"],"created_at":"2024-08-02T05:01:06.339Z","updated_at":"2025-04-12T14:40:35.063Z","avatar_url":"https://github.com/diglol.png","language":"C","funding_links":[],"categories":["Libraries"],"sub_categories":["🔑 Crypto"],"readme":"# Diglol Crypto\n\n[![badge-license]][url-license]\n[![badge-latest-release]][url-latest-release]\n\n![badge-platform-android]\n![badge-platform-jvm]\n![badge-platform-js]\n![badge-platform-linux]\n![badge-platform-ios]\n![badge-platform-tvos]\n![badge-platform-watchos]\n![badge-platform-windows]\n\nDiglol Crypto for Kotlin Multiplatform.\n\n当前支持:\n\n- random\n  - nextInt\n  - nextBytes\n- [hash][hash]\n  - SHA1\n  - SHA256\n  - SHA384\n  - SHA512\n- mac\n  - [Hmac][hmac] (SHA1, SHA256, SHA384, SHA512)\n  - [Poly1305][poly1305]\n- pkc\n  - Dh\n    - [X25519][x25519]\n  - Dsa\n    - [Ed25519][ed25519]\n- kdf\n  - [Argon2][argon2]\n  - [Pbkdf2][pbkdf2]\n- cipher\n  - [AesCbc][aescbc] (128, 256)\n  - [XChaCha20][xchacha20]\n- aead\n  - [AesGcm][aesgcm] (128, 256)\n  - [XChaCha20Poly1305][xchacha20poly1305]\n  - [EncryptThenMac][encryptthenmac]\n- otp\n  - [HOTP][hotp]\n  - [TOTP][totp]\n- [siphash][siphash]\n  - siphash\n  - halfsiphash\n\n### 发布\n\n我们的 [change log](CHANGELOG.md) 有发布历史。\n\n##### Crypto\n\n包含所有的子模块\n\n```gradle\nimplementation(\"com.diglol.crypto:crypto:0.2.0\")\n```\n\n_如果需要依赖子模块，请参考当前支持的加密常量。_\n\n```gradle\nimplementation(\"com.diglol.crypto:${submodule}:0.2.0\")\n```\n\n### License\n\n    Copyright 2022 Diglol\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n\n[hash]: https://datatracker.ietf.org/doc/html/rfc4634\n[hmac]: https://datatracker.ietf.org/doc/html/rfc2104\n[poly1305]: https://datatracker.ietf.org/doc/html/rfc7539\n[x25519]: https://datatracker.ietf.org/doc/html/rfc7748\n[ed25519]: https://datatracker.ietf.org/doc/html/rfc8032\n[argon2]: https://datatracker.ietf.org/doc/rfc9106/\n[pbkdf2]: https://datatracker.ietf.org/doc/html/rfc6070\n[aescbc]: https://datatracker.ietf.org/doc/html/rfc3602\n[xchacha20]: https://datatracker.ietf.org/doc/html/draft-arciszewski-xchacha-01\n[aesgcm]: https://datatracker.ietf.org/doc/html/rfc5288\n[xchacha20poly1305]: https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-xchacha\n[encryptthenmac]: https://datatracker.ietf.org/doc/html/draft-mcgrew-aead-aes-cbc-hmac-sha2-05\n[hotp]: https://datatracker.ietf.org/doc/html/rfc4226\n[totp]: https://datatracker.ietf.org/doc/html/rfc6238\n[siphash]: https://datatracker.ietf.org/doc/rfc9231/\n\n\u003c!-- TAG_VERSION --\u003e\n[badge-latest-release]: https://img.shields.io/badge/latest--release-0.2.0-blue.svg?style=flat\n[badge-license]: https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg?style=flat\n[url-latest-release]: https://github.com/diglol/crypto/releases/latest\n[url-license]: https://www.apache.org/licenses/LICENSE-2.0.txt\n\n\u003c!-- TAG_PLATFORMS --\u003e\n[badge-platform-android]: http://img.shields.io/badge/-android-6EDB8D.svg?style=flat\n[badge-platform-jvm]: http://img.shields.io/badge/-jvm-DB413D.svg?style=flat\n[badge-platform-js]: http://img.shields.io/badge/-js-F8DB5D.svg?style=flat\n[badge-platform-linux]: http://img.shields.io/badge/-linux-2D3F6C.svg?style=flat\n[badge-platform-tvos]: http://img.shields.io/badge/-tvos-808080.svg?style=flat\n[badge-platform-ios]: http://img.shields.io/badge/-ios-808080.svg?style=flat\n[badge-platform-watchos]: http://img.shields.io/badge/-watchos-C0C0C0.svg?style=flat\n[badge-platform-windows]: http://img.shields.io/badge/-windows-4D76CD.svg?style=flat\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiglol%2Fcrypto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdiglol%2Fcrypto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiglol%2Fcrypto/lists"}