{"id":17175994,"url":"https://github.com/muntashirakon/sun-security-android","last_synced_at":"2025-04-13T17:06:26.365Z","repository":{"id":102803379,"uuid":"354464836","full_name":"MuntashirAkon/sun-security-android","owner":"MuntashirAkon","description":"Use the Android-private sun.security library","archived":false,"fork":false,"pushed_at":"2021-05-22T10:14:59.000Z","size":473,"stargazers_count":15,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-13T17:06:13.316Z","etag":null,"topics":["android-library","keystore-provider","security"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MuntashirAkon.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}},"created_at":"2021-04-04T05:36:39.000Z","updated_at":"2024-11-08T06:16:29.000Z","dependencies_parsed_at":"2023-07-23T17:00:53.548Z","dependency_job_id":null,"html_url":"https://github.com/MuntashirAkon/sun-security-android","commit_stats":{"total_commits":9,"total_committers":2,"mean_commits":4.5,"dds":"0.11111111111111116","last_synced_commit":"dc0ac462a56853255c3b2910775d16a875bc137a"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MuntashirAkon%2Fsun-security-android","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MuntashirAkon%2Fsun-security-android/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MuntashirAkon%2Fsun-security-android/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MuntashirAkon%2Fsun-security-android/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MuntashirAkon","download_url":"https://codeload.github.com/MuntashirAkon/sun-security-android/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248750075,"owners_count":21155685,"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":["android-library","keystore-provider","security"],"created_at":"2024-10-14T23:58:40.995Z","updated_at":"2025-04-13T17:06:26.319Z","avatar_url":"https://github.com/MuntashirAkon.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sun.security for Android\n\nAndroid port of [`sun.security` API from JDK7](http://hg.openjdk.java.net/jdk7/jdk7/jdk/file/9b8c96f96a0f/src/share/classes/sun/security). Android actually have this API but only partially and is very restrictive.\n\n[![](https://jitpack.io/v/MuntashirAkon/sun-security-android.svg)](https://jitpack.io/#MuntashirAkon/sun-security-android)\n\n## Quick start\napksig for Android is available via JitPack.\n\n```groovy\n// Top level build file\nrepositories {\n    maven { url \"https://jitpack.io\" }\n}\n\n// Add to dependencies section\ndependencies {\n    implementation 'com.github.MuntashirAkon:sun-security-android:1.0'\n}\n```\n\nUse `android.sun.security` instead of just `sun.security` for package names. It also contains the calendar API which can be used to create certificates.\n\n### Register KeyStores\nOverride `Application#onCreate()` and put the following line there:\n```java\nSecurity.addProvider(new JavaKeyStoreProvider());\n```\n\n## Features\nIt contains support for the following. See Java docs on `sun.security` for their usage.\n  * Support for `pk8`\n  * `JKS` and `PKCS12`\n  * Anything under `sun.security.x509`\n\n## License\nGPL-2.0 with \"classpath\" exception stated below:\n\n```\nLinking this library statically or dynamically with other modules is making\na combined work based on this library.  Thus, the terms and conditions of\nthe GNU General Public License cover the whole combination.\n\nAs a special exception, the copyright holders of this library give you\npermission to link this library with independent modules to produce an\nexecutable, regardless of the license terms of these independent modules,\nand to copy and distribute the resulting executable under terms of your\nchoice, provided that you also meet, for each linked independent module,\nthe terms and conditions of the license of that module.  An independent\nmodule is a module which is not derived from or based on this library.  If\nyou modify this library, you may extend this exception to your version of\nthe library, but you are not obligated to do so.  If you do not wish to do\nso, delete this exception statement from your version.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuntashirakon%2Fsun-security-android","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmuntashirakon%2Fsun-security-android","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuntashirakon%2Fsun-security-android/lists"}