Crates.io | json-simple-obfuscator |
lib.rs | json-simple-obfuscator |
version | 0.2.6 |
created_at | 2025-05-23 14:20:19.045863+00 |
updated_at | 2025-08-15 10:14:44.029721+00 |
description | A tool to partially hide json value (using unsecure pseudonimize / obfuscate algo). |
homepage | https://github.com/davidB/json-simple-obfuscator |
repository | https://github.com/davidB/json-simple-obfuscator |
max_upload_size | |
id | 1686352 |
size | 102,023 |
A tool to partially hide json value (using unsecure pseudonimize / obfuscate algo).
apply(a.json) == apply(apply(apply(.... (apply(a.json)))))
, so it could be used as part of pre-commit hook, build stage,...❯ json-simple-obfuscator file1.json file2.json
◇ Obfuscated 2 files
│
└ Done!
❯ json-simple-obfuscator -h
A tool to partially hide json value (using unsecure pseudonimize / obfuscate algo).
Usage: json-simple-obfuscator [FILE]...
Arguments:
[FILE]... path of files to obfuscate
Options:
-h, --help Print help
-V, --version Print version
Download the binary from the release page.
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/davidB/json-simple-obfuscator/releases/download/0.2.0/json-simple-obfuscator-installer.sh | sh
powershell -ExecutionPolicy Bypass -c "irm https://github.com/davidB/json-simple-obfuscator/releases/download/0.2.0/json-simple-obfuscator-installer.ps1 | iex"
brew install brew install davidB/tap/json-simple-obfuscator
cargo install json-simple-obfuscator
[tools]
"ubi:davidB/json-simple-obfuscator" = "latest"
{
"a": "Hello",
"id": 123456,
"details": {
"user": "johnD",
"name": "John Doe",
"url": "http://example.com/item/123456"
}
}
becomes
{
"a": "Hello",
"id": 111111,
"details": {
"user": "aaaaA",
"name": "Aaaa Aaa",
"url": "http://example.com/item/111111"
}
}
id
, _id
, *token
, *password
, *secret
, user
, *name
, `1
(preserve the number of digit, dot & comma)a
and uppercase by A
, digit by 1
(preserve other caracteres: )Feedback, PR and feature request are welcomes. By example: