{"id":23155038,"url":"https://github.com/tengattack/gluacrypto","last_synced_at":"2025-08-17T22:31:56.345Z","repository":{"id":44910669,"uuid":"148878582","full_name":"tengattack/gluacrypto","owner":"tengattack","description":"A native Go implementation of crypto library for the GopherLua VM.","archived":false,"fork":false,"pushed_at":"2024-03-24T20:01:46.000Z","size":11,"stargazers_count":5,"open_issues_count":0,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-20T19:26:40.052Z","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/tengattack.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-09-15T07:06:35.000Z","updated_at":"2024-03-25T10:56:17.000Z","dependencies_parsed_at":"2022-08-26T08:01:50.748Z","dependency_job_id":null,"html_url":"https://github.com/tengattack/gluacrypto","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/tengattack%2Fgluacrypto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tengattack%2Fgluacrypto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tengattack%2Fgluacrypto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tengattack%2Fgluacrypto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tengattack","download_url":"https://codeload.github.com/tengattack/gluacrypto/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230174890,"owners_count":18184926,"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":[],"created_at":"2024-12-17T20:15:12.101Z","updated_at":"2024-12-17T20:15:12.530Z","avatar_url":"https://github.com/tengattack.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LuaCrypto for GopherLua\n\nA native Go implementation of crypto library for the [GopherLua](https://github.com/yuin/gopher-lua) VM.\n\n## Using\n\n### Loading Modules\n\n```go\nimport (\n\t\"github.com/tengattack/gluacrypto\"\n)\n\n// Bring up a GopherLua VM\nL := lua.NewState()\ndefer L.Close()\n\n// Preload LuaCrypto modules\ngluacrypto.Preload(L)\n```\n\n### Encoding\n\n* base64\n\n### Hashing\n\n* crc32\n* md5\n* sha1\n* sha256\n* sha512\n* hmac\n\n```lua\ncrypto.md5(input [, raw])\n-- ...crc32, sha1, sha256, sha512\ncrypto.hmac(dtype, input, key [, raw])\n```\n\nIf you need raw data output, set `raw` to `true`.\n\n### Encrypt/Decrypt Chiper Method\n\n* des-ecb\n* des-cbc\n* aes-cbc (key supports 128, 256, etc.)\n\n```lua\ncrypto.encrypt(input, cipher, key, options, iv)\ncrypto.decrypt(input, cipher, key, options, iv)\n```\n\nIf you need raw data input/output, using `crypto.RAW_DATA` as `options`, otherwise set it to 0.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftengattack%2Fgluacrypto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftengattack%2Fgluacrypto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftengattack%2Fgluacrypto/lists"}