{"id":15722677,"url":"https://github.com/subsoap/pack","last_synced_at":"2025-05-13T03:44:39.471Z","repository":{"id":71236579,"uuid":"121910714","full_name":"subsoap/pack","owner":"subsoap","description":"Compress, decompress, and obfuscate table data with Defold","archived":false,"fork":false,"pushed_at":"2018-07-28T13:05:23.000Z","size":47,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-10T05:52:49.321Z","etag":null,"topics":["defold","defold-game-engine","xor-cipher"],"latest_commit_sha":null,"homepage":null,"language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/subsoap.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-02-18T02:21:45.000Z","updated_at":"2024-09-19T06:54:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"5d613b0c-3316-4308-bc7e-fea395c1ebb9","html_url":"https://github.com/subsoap/pack","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subsoap%2Fpack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subsoap%2Fpack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subsoap%2Fpack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subsoap%2Fpack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/subsoap","download_url":"https://codeload.github.com/subsoap/pack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253870823,"owners_count":21976610,"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":["defold","defold-game-engine","xor-cipher"],"created_at":"2024-10-03T22:08:52.290Z","updated_at":"2025-05-13T03:44:39.447Z","avatar_url":"https://github.com/subsoap.png","language":"Lua","funding_links":[],"categories":["Libraries"],"sub_categories":["Programming Language"],"readme":"# Pack\nCompress, decompress, and obfuscate table data with Defold\n\n## Installation\nYou can use Pack in your own project by adding this project as a [Defold library dependency](http://www.defold.com/manuals/libraries/). Open your game.project file and in the dependencies field under project add:\n\n\thttps://github.com/subsoap/pack/archive/master.zip\n\nOnce added, you must require the main Lua module in scripts via\n\n```\nlocal pack = require(\"pack.pack\")\n```\n\n## Usage\n\n```\n\tpack.set_obfuscation_key(\"my_secret_key\")\n\tpack.set_obfuscation_flag(true)\n\t\n\t--- Obfuscate Text\n\t\n\tthing_1 = \"DEFOLD\"\n\tthing_2 = pack.obfuscate(thing_1)\n\tthing_3 = pack.obfuscate(thing_2)\n\tprint(thing_3)\n\t\n\ttext = thing_1\n\ttext = text .. \"\\n\" .. thing_2\n\ttext = text .. \"\\n\" .. thing_3\n\t\n\tgui.set_text(gui.get_node(\"text\"), text)\n\n\t--- Compress / Decompress Tables\n\t\n\tmy_table = {text = \"this is text\"}\n\tpprint(my_table)\n\tmy_table_2 = pack.compress(my_table)\n\tpprint(my_table_2)\n\tmy_table_3 = pack.decompress(my_table_2)\n\tpprint(my_table_3)\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubsoap%2Fpack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsubsoap%2Fpack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubsoap%2Fpack/lists"}