1.0.1 • Published 4 years ago

pngpirate v1.0.1

Weekly downloads
-
License
UNLICENCED
Repository
github
Last release
4 years ago

pngpirate

npm install pngpirate

pngpirate is a tool for iOS Jailbreak theme designers/repo maintainers to invisibly watermark (steganography) themes to the user purchasing them.
The actual icons inside the theme are watermarked, making it difficult for a pirate to remove the watermark.

Watermarking a deb file

const pngpirate = require('pngpirate');

app.get('/example.deb', (req,res) => {
    pngpirate.watermark('/path/to/example.deb' /* tpath - path to the theme deb which will be watermarked */
    , req.headers['X-Unique-ID'] /* id - the text to watermark to the icons */
    , 5) /* limit - the max number of icons that will be watermarked*/

    /* this function will write the output theme to tmp-pngpirate/out.deb */
    res.sendFile('tmp-pngpirate/out.deb') /* This directory is automatically cleared before being used */
})

Getting watermarked strings from a deb file

const pngpirate = require('pngpirate')

pngpirate.getIDs('/path/to/example.deb' /* tpath - path to the theme deb which ids will be extracted from */
    , (ids) => console.log) /* cb - callback which will be run with the ids */

// This method returns an Object in the format:
{"relative/path/to/png": "string/id found", "another/path/to/png/": "another string/id found" ...etc}

Dependencies

1.0.1

4 years ago

1.0.0

4 years ago