https://github.com/codestation/go-pkgdec
https://github.com/codestation/go-pkgdec
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/codestation/go-pkgdec
- Owner: codestation
- License: mit
- Created: 2018-03-20T17:30:20.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-25T02:09:14.000Z (over 8 years ago)
- Last Synced: 2024-06-19T21:47:20.196Z (about 2 years ago)
- Language: Go
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
go-pkgdec
========
Decrypt and extract PKG files
The `pkgdec` command runs the same across platform and has no external dependencies
## Install
```bash
go get megpoid.xyz/go/go-pkgdec/cmd/pkgdec
```
## Command Use
Decrypt and unpack a PKG file:
```bash
$ pkgdec -i [-o ] [-l ]
```
(The license is required to generate the work.bin file)
## Library Use
```go
package main
import "log"
import "os"
import "megpoid.xyz/go/go-pkgdec/pkg"
func main() {
r, err := pkg.OpenReader("file.pkg", "")
if err != nil {
log.Fatal(err)
}
defer r.Close()
err = r.Unpack("output_folder", nil)
if err != nil {
log.Fatal(err)
}
if ! r.Valid() {
log.Println("PKG hash check failed")
}
}
```
## Why another unpacker
No reason. Just a quick project to improve my Go learning
## License
MIT