encon
Encon is an optionally-encrypted config format, built on top of JSON. A mix of encrypted and plain fields, and support for encrypting arbitrary JSON values make it very flexible.
Example
use json;
use ;
let pass = new;
let mut map = new;
map.insert;
map.insert;
map.get_mut.unwrap.intend_encrypted;
assert_eq!;
assert_eq!;
map.apply_all_intents.unwrap;
assert_eq!;
assert_eq!;
let json = map.to_json_pretty.unwrap;
let mut map2: Map = from_str.unwrap;
assert_eq!;
assert_eq!;
let value = map2.get_mut.unwrap
.to_decrypted.unwrap
.as_plain.unwrap.clone;
assert_eq!;
Current version: 0.0.1
Other Crates
encon-cli
: a command line tool for interacting with encon JSON filesencon-js
: an npm package (npm install encon
)
All crates licensed as MIT