projects
/
rup.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add a configuration file + crypto module interface
[rup.git]
/
src
/
crypto.rs
diff --git a/src/crypto.rs
b/src/crypto.rs
new file mode 100644
(file)
index 0000000..
4190552
--- /dev/null
+++ b/
src/crypto.rs
@@ -0,0
+1,10
@@
+
\r
+pub fn encrypt(key: &str, plain_text: &str) -> String {
\r
+ String::new()
\r
+}
\r
+
\r
+pub fn decrypt(key: &str, cypher_text: &str) -> Option<String> {
\r
+
\r
+ println!("cypher: {}", cypher_text);
\r
+ Some(String::new())
\r
+}
\r