{"id":19535569,"url":"https://github.com/miyako/legacyzip","last_synced_at":"2026-03-03T11:41:18.576Z","repository":{"id":259828229,"uuid":"879527656","full_name":"miyako/LegacyZip","owner":"miyako","description":"support legacy Windows XP ZipCrypto archives in ShiftJIS","archived":false,"fork":false,"pushed_at":"2024-12-04T14:46:52.000Z","size":8416,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-08T17:55:14.153Z","etag":null,"topics":["4d-class","4d-component","zip","zipcrypto"],"latest_commit_sha":null,"homepage":"https://miyako.github.io/LegacyZip/","language":"4D","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/miyako.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":"2024-10-28T04:30:51.000Z","updated_at":"2024-12-04T14:46:47.000Z","dependencies_parsed_at":"2024-11-19T00:20:26.133Z","dependency_job_id":"e0d36c8b-0a0e-4078-9e9b-6e4d695c4836","html_url":"https://github.com/miyako/LegacyZip","commit_stats":null,"previous_names":["miyako/golang-zip","miyako/legacy-zip"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miyako%2FLegacyZip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miyako%2FLegacyZip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miyako%2FLegacyZip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miyako%2FLegacyZip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/miyako","download_url":"https://codeload.github.com/miyako/LegacyZip/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240788773,"owners_count":19857699,"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":["4d-class","4d-component","zip","zipcrypto"],"created_at":"2024-11-11T02:19:06.985Z","updated_at":"2026-03-03T11:41:18.568Z","avatar_url":"https://github.com/miyako.png","language":"4D","funding_links":[],"categories":[],"sub_categories":[],"readme":"![version](https://img.shields.io/badge/version-20%2B-E23089)\n![platform](https://img.shields.io/static/v1?label=platform\u0026message=mac-intel%20|%20mac-arm%20|%20win-64\u0026color=blue)\n[![license](https://img.shields.io/github/license/miyako/LegacyZip)](LICENSE)\n![downloads](https://img.shields.io/github/downloads/miyako/LegacyZip/total)\n\n# LegacyZip\n\n## dependencies.json\n\n ```json\n{\n\t\"dependencies\": {\n\t\t\"LegacyZip\": {\n\t\t\t\"github\": \"miyako/LegacyZip\",\n\t\t\t\"version\": \"latest\"\n\t\t}\n\t}\n}\n```\n\n```4d\nvar $LegacyZip : cs.LegacyZip\n\n$LegacyZip:=cs.LegacyZip.new()\n\n$src:=Folder(fk desktop folder).folder(\"test\")\nIf ($src.exists)\n\t$src.delete(Delete with contents)\nEnd if \n$src.create()\n$src.file(\"あいうえお.txt\").setText(\"あいうえお\")\n$src.folder(\"かきくけこ\").create()\n\n$dst:=Folder(fk desktop folder).file(\"test.zip\")\nIf ($dst.exists)\n\t$dst.delete()\nEnd if \n\n$options:={cp932: True; method: \"deflate\"; password: \"dddd\"; encryption: \"zipcrypto\"}\n$worker:=$LegacyZip.zip($src; $dst; $options)\n$worker.wait()\nALERT($LegacyZip.data.join(\"\\r\"))\n\n$src:=$dst\n$dst:=Folder(fk desktop folder).folder(\"zipcrypto\")\n$dst.create(Delete with contents)\n\n$worker:=$LegacyZip.unzip($src; $dst; $options)\n$worker.wait()\nALERT($LegacyZip.data.join(\"\\r\"))\n```\n\n## objective\n\n* support legacy Windows XP `ZipCrypto` archives in `ShiftJIS`\n\n### encryption\n\n* use https://github.com/hillu/go-archive-zip-crypto for `ZipCrypto`\n* use https://github.com/noridas80/zi18np for `ShiftJIS`\n\n## Go Build\n\n```\nGOOS=darwin GOARCH=arm64 go build -o zip-arm main.go\nGOOS=darwin GOARCH=amd64 go build -o zip-amd main.go\nlipo -create zip-arm zip-amd -output uuid\nGOOS=windows GOARCH=amd64 go build -o zip.exe main.go\n```\n\n## CLI\n\n```\nzip -src \"path.zip\" \\\n    -dst \"path\" \\\n    -cp932 \\\n    -password \"password\"\\\n    -unzip \\\n    -encryption zipcrypto \\\n    -method deflate\n```\n\n|flag|default|other|\n|:-|:-:|:-:|\n|cp932|false|true|\n|unzip|false|true|\n|src|||\n|dst|||\n|password|||\n|encryption (requires password)|zipcrypto|aes128 aes192 aes256|\n|method|deflate|store|\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiyako%2Flegacyzip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmiyako%2Flegacyzip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiyako%2Flegacyzip/lists"}