Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/toyobayashi/node-usm-decrypter


https://github.com/toyobayashi/node-usm-decrypter

Last synced: 28 days ago
JSON representation

Awesome Lists containing this project

README

        

```ts
export declare type DecryptCallback = (err: Error | null, outdir: string) => void

export declare enum Encoding {
UTF8 = 65001,
SHIFT_JIS = 932
}

export declare class USMDecrypter {
constructor(cipherKey1?: number, cipherKey2?: number)

getEncoding (): Encoding
setEncoding (encoding: Encoding): void

demux (usmFile: string, callback?: DecryptCallback): void
demux (usmFile: string, outdir: string, callback?: DecryptCallback): void
demux (usmFile: string, outdir: string, adxDecode: boolean, callback?: DecryptCallback): void

demuxSync (usmFile: string, outdir?: string, adxDecode?: boolean): string
}
```