https://github.com/jozsefsallai/go-chie
powerful encryption/decryption for cave story's tsc format using go
https://github.com/jozsefsallai/go-chie
cave-story decryption encryption golang tsc
Last synced: over 1 year ago
JSON representation
powerful encryption/decryption for cave story's tsc format using go
- Host: GitHub
- URL: https://github.com/jozsefsallai/go-chie
- Owner: jozsefsallai
- License: mit
- Created: 2020-05-14T15:15:11.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-12T13:48:41.000Z (about 6 years ago)
- Last Synced: 2025-01-12T13:47:39.673Z (over 1 year ago)
- Topics: cave-story, decryption, encryption, golang, tsc
- Language: Go
- Size: 7.81 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-chie
`chie` is a Go port of the [chie Node.js library][1] which aims to be more
performant and cross-platform. It serves a decryption/encryption library and
command-line tool for Cave Story's script file format (TSC).
## Getting Started
**Get the package:**
```sh
go get -u github.com/jozsefsallai/go-chie
```
**Use it:**
```go
package main
import "github.com/jozsefsallai/go-chie"
func main() {
tsc := chie.NewTSCParser()
err := tsc.FromFile("./Ballo1.tsc")
if err != nil {
panic(err)
}
err = tsc.Decrypt().ToFile("./Ballo1.txt")
if err != nil {
panic(err)
}
}
```
**Full docs and reference:** https://pkg.go.dev/github.com/jozsefsallai/go-chie
## CLI
`chie` also comes with a CLI. You can either [grab a release][2]* or install via
`go get`:
```sh
go get github.com/jozsefsallai/go-chie/cmd/chie
```
_*) if you do this, you might want to download it somewhere inside your PATH_
**Usage:**
```sh
chie tsc decrypt Ballo1.tsc
# will decrypt to output.txt
chie tsc decrypt Ballo1.tsc -o Ballo1.txt
# will decrypt to Ballo1.txt
chie tsc encrypt Ballo1.txt
# will encrypt to output.tsc
chie tsc encrypt Ballo1.txt -o Ballo1.tsc
# will encrypt to Ballo1.tsc
```
or decrypt/encrypt multiple files at once:
```sh
chie tsc decrypt "Stage/*.tsc" -o "Stage/*.txt"
# will decrypt all files with the extension ".tsc" in the Stage folder
# the quotes are necessary
```
Encrypt while preserving comments:
```sh
chie tsc encrypt Ballo1.tsc -o Ballo1.txt --allow-comments
# or
chie tsc encrypt Ballo1.tsc -o Ballo1.txt -c
```
## License
MIT.
[1]: https://github.com/jozsefsallai/chie
[2]: https://github.com/jozsefsallai/go-chie/releases/latest