Skip to content

antanas-sukevicius/JSONObfuscator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSON Obfuscator

Tool encodes and decodes JSON string.

Usage

Usage example: "node index.js"

Encode:

//Saves encoded file, generates mapping files and gives an output object.
const objCodedJSON = JSONObfuscator.encode(strJSON, obfuscatedJSONFilePath, mappingJSON)

objCodedJSON = {
        strEncodedJSON: encodedJSON,
        strReplacementMap: encodeMap,
        jsonFileSaveStatus: encodedFileSaveStatus,
        mappingFileSaveStatus: mappingFileSaveStatus
    }
  • strJSON - JSON string to obfuscate.
  • obfuscatedJSONFilePath - Optional, on default saves file no current directory "./obfuscatedJSON.json".
  • mappingJSON - Optional, on default saves file on current directory "./mapping.json".

Decode:

//Saves decoded JSON, gives an ouput object.
const objDecodedJSON = JSONObfuscator.decode(obfuscatedJSON, mappingJSON, decodedJSONFilePath);

objDecodedJSON = {
        strDencodedJSON: strJSON,
        strSaveFileStatus: fileSaveStatus
    }
  • obfuscatedJSON - JSON string to decode.
  • mappingJSON - Mapping json string.
  • decodedJSONFilePath - Optional, on default saves file on current directory "./decodedJSON.json".

About

JSON Obfuscator. Encodes/Decodes JSON.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published