{"id":37105423,"url":"https://github.com/codestation/go-pkgdec","last_synced_at":"2026-01-14T12:43:05.739Z","repository":{"id":138848655,"uuid":"126057128","full_name":"codestation/go-pkgdec","owner":"codestation","description":null,"archived":false,"fork":false,"pushed_at":"2018-03-25T02:09:14.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-19T21:47:20.196Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/codestation.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":"2018-03-20T17:30:20.000Z","updated_at":"2018-03-25T02:09:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"e7a7d075-c71a-4b15-8914-91a3742bdcf3","html_url":"https://github.com/codestation/go-pkgdec","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/codestation/go-pkgdec","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codestation%2Fgo-pkgdec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codestation%2Fgo-pkgdec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codestation%2Fgo-pkgdec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codestation%2Fgo-pkgdec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codestation","download_url":"https://codeload.github.com/codestation/go-pkgdec/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codestation%2Fgo-pkgdec/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28420814,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2026-01-14T12:43:05.001Z","updated_at":"2026-01-14T12:43:05.726Z","avatar_url":"https://github.com/codestation.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"go-pkgdec\n========\n\nDecrypt and extract PKG files\n\nThe `pkgdec` command runs the same across platform and has no external dependencies\n\n## Install\n\n```bash\ngo get megpoid.xyz/go/go-pkgdec/cmd/pkgdec\n```\n\n## Command Use\n\nDecrypt and unpack a PKG file:\n\n```bash\n$ pkgdec -i \u003cfile.pkg or http://host/file.pkg\u003e [-o \u003coutput dir\u003e] [-l \u003czRIF string\u003e]\n```\n\n(The license is required to generate the work.bin file)\n\n## Library Use\n\n```go\npackage main\n\nimport \"log\"\nimport \"os\"\nimport \"megpoid.xyz/go/go-pkgdec/pkg\"\n\nfunc main() {\n    r, err := pkg.OpenReader(\"file.pkg\", \"\")\n    if err != nil {\n        log.Fatal(err)\n    }\n    defer r.Close()\n    \n    err = r.Unpack(\"output_folder\", nil)\n    if err != nil {\n        log.Fatal(err)\n    }\n    \n    if ! r.Valid() {\n        log.Println(\"PKG hash check failed\")\n    }\n}\n```\n\n## Why another unpacker\n\nNo reason. Just a quick project to improve my Go learning\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodestation%2Fgo-pkgdec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodestation%2Fgo-pkgdec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodestation%2Fgo-pkgdec/lists"}