aboutsummaryrefslogtreecommitdiff
path: root/lockchain-core/README.md
diff options
context:
space:
mode:
authorKatharina Sabel <katharina.sabel@asquera.de>2018-04-15 22:26:54 +0200
committerKatharina Sabel <katharina.sabel@asquera.de>2018-04-15 22:26:54 +0200
commitde3a3d493115c620dee7a06a0d8b8bd52e055952 (patch)
tree52143b8f35626d901c392c47ce860f47f3939a19 /lockchain-core/README.md
parent323afe650a6dd95eb8175242b40516125dfb3c88 (diff)
Adding some more docs and README
Diffstat (limited to 'lockchain-core/README.md')
-rw-r--r--lockchain-core/README.md39
1 files changed, 38 insertions, 1 deletions
diff --git a/lockchain-core/README.md b/lockchain-core/README.md
index cbfe156..32ebc7c 100644
--- a/lockchain-core/README.md
+++ b/lockchain-core/README.md
@@ -1,3 +1,40 @@
# lockchain-core
-Core module for the lockchain password manager. \ No newline at end of file
+If you're a Rust developer and interested in the `lockchain` crate, this README is for you. Lockchain is a document based, encrypted data vault. It provides you with an easy to use API to create, manage and update vaults and records. Build robust and user-friendly applications that deal with their data in a secure manner.
+
+Most notibly, this crate is being used by the [lockchain]() password manager as well as the [poke]() linux ssh key manager.
+
+## Example
+
+Here is the most minimal example of how to use lockchain.
+
+```Rust
+use lockchain::record::Payload;
+use lockchain::vault::Vault;
+
+fn main() {
+ let mut v = Vault::new(
+ "user_secrets",
+ "~/.local/my_app/",
+ "user password here, it's hashed we promise",
+ ).unwrap();
+
+ /* Add a new record and put some data into it */
+ v.add_record("User", "I say this is a category", None);
+ v.add_data(
+ "User",
+ "data_key",
+ Payload::Text(
+ "This is some really important data that needs to be kept secure. Promise me!!!"
+ .to_owned(),
+ ),
+ );
+
+ /* All changes are kept in RAM until you sync */
+ v.sync();
+}
+```
+
+## Security notice
+
+The cryptography in this crate has not undergone any formal review or verification. While stability and data integrity can be thoroughly tested, the security of this crate can not be guaranteed. **Use it at your own risk!** \ No newline at end of file