Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/themostblack/luaapksigner
An APK V1 Signing Tool Implemented in C Using OpenSSL and libzip Libraries, with Lua Bindings
https://github.com/themostblack/luaapksigner
apksigner libzip lua openssl
Last synced: 26 days ago
JSON representation
An APK V1 Signing Tool Implemented in C Using OpenSSL and libzip Libraries, with Lua Bindings
- Host: GitHub
- URL: https://github.com/themostblack/luaapksigner
- Owner: TheMostBlack
- License: mit
- Created: 2024-10-20T19:29:42.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-11-24T00:54:44.000Z (about 2 months ago)
- Last Synced: 2024-11-24T01:25:22.994Z (about 2 months ago)
- Topics: apksigner, libzip, lua, openssl
- Language: C
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LuaApkSigner
An APK V1 Signing Tool Implemented in C Using OpenSSL and libzip Libraries, with Lua Bindings
[Chinese](README.zh.md)
---
## Example Usage:
```lua
local LuaApkSigner = require("LuaApkSigner")-- Generate a MANIFEST.MF file for apkPath and write it to manifestPath
LuaApkSigner.generate_manifest(apkPath, manifestPath)-- Generate a CERT.SF file for manifestPath and write it to certPath
LuaApkSigner.generate_cert_sf(manifestPath, certPath)-- Convert pk8Path to PEM format and write it to pemPath
LuaApkSigner.convert_pk8_to_pem(pk8Path, pemPath)-- Generate a CERT.RSA file for certPath and write it to rsaPath, the second parameter is the private key path, and the third parameter is the X.509 certificate path
LuaApkSigner.generate_cert_rsa(certPath, pemPath, x509PemPath, rsaPath)-- Sign the apkPath and output to signedApkPath, the second parameter is the private key path, the third parameter is the X.509 certificate path, if the fourth parameter (signedApkPath) is not passed or is false/nil, the signed Apk will overwrite apkPath
LuaApkSigner.sign_apk(apkPath, pemPath, x509PemPath, signedApkPath)