{"id":20459596,"url":"https://github.com/ticesoftware/androidhkdf","last_synced_at":"2025-09-04T17:34:11.330Z","repository":{"id":143710722,"uuid":"250290449","full_name":"TICESoftware/AndroidHKDF","owner":"TICESoftware","description":null,"archived":false,"fork":false,"pushed_at":"2023-08-24T11:55:17.000Z","size":201,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-13T08:06:00.208Z","etag":null,"topics":["kotlin","tice-app","tice-crypto"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/TICESoftware.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":"2020-03-26T15:04:15.000Z","updated_at":"2024-02-11T17:51:01.000Z","dependencies_parsed_at":"2025-01-15T23:52:49.827Z","dependency_job_id":"10c611b9-c109-4bb4-a46d-a6022f111981","html_url":"https://github.com/TICESoftware/AndroidHKDF","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/TICESoftware/AndroidHKDF","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TICESoftware%2FAndroidHKDF","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TICESoftware%2FAndroidHKDF/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TICESoftware%2FAndroidHKDF/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TICESoftware%2FAndroidHKDF/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TICESoftware","download_url":"https://codeload.github.com/TICESoftware/AndroidHKDF/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TICESoftware%2FAndroidHKDF/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259606867,"owners_count":22883556,"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":["kotlin","tice-app","tice-crypto"],"created_at":"2024-11-15T12:16:44.706Z","updated_at":"2025-06-13T08:06:03.796Z","avatar_url":"https://github.com/TICESoftware.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AndroidHKDF\n\nHMAC-based Extract-and-Expand Key Derivation Function (HKDF) as defined in \u003ca href=\"https://tools.ietf.org/html/rfc5869\"\u003eRFC 5869\u003c/a\u003e.\nThe HMAC is provided by libsodium which uses the HMAC-SHA-512/256 algorithm. Libsodium is integrated via \u003ca href=\"https://github.com/terl/lazysodium-android.git\"\u003eLazysodium\u003c/a\u003e.\n\n## Installation\n\n### Jitpack\nTo integrate the library via jitpack add the jitpack repository to your root `build.gradle` file:\n\n```\nallprojects {\n  repositories {\n    ...\n    maven { url 'https://jitpack.io' }\n  }\n}\n```\n\nYou can then add the dependency to your app's `build.gradle` file where `$VERSION` specifies the specific version of the library:\n\n```\ndependencies {\n  implementation 'com.github.TICESoftware:AndroidHKDF:$VERSION'\n}\n ```\n\n## Usage\nFor deriving a new key of length 32 bytes from some input keying material `ikm`:\n\n```kotlin\nimport com.ticeapp.androidhkdf.*\nimport com.goterl.lazysodium.LazySodiumAndroid\nimport com.goterl.lazysodium.SodiumAndroid\n\nval ikm = \"Input key\".encodeToByteArray()\nval hkdfKey = deriveHKDFKey(ikm, L = 32)\n```\n\nA `salt` and some application specific info string (which is hashed into the HMAC) can additionally be provided:\n\n`deriveHKDFKey(ikm, salt = salt, info = \"Info\", L = 32)`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fticesoftware%2Fandroidhkdf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fticesoftware%2Fandroidhkdf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fticesoftware%2Fandroidhkdf/lists"}