An open API service indexing awesome lists of open source software.

https://github.com/codestation/go-pkgdec


https://github.com/codestation/go-pkgdec

Last synced: 6 months ago
JSON representation

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