Skip to content

Commit

Permalink
+
Browse files Browse the repository at this point in the history
+

+

+
  • Loading branch information
oluceps committed Sep 16, 2024
1 parent 7d436a8 commit df2d6d1
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 31 deletions.
7 changes: 0 additions & 7 deletions src/cmd/renc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,8 @@ impl Profile {

let b_hash = blake3::hash(&b);

debug!("{:?}", m);
if let Some(o) = m.inner().get(s) {
let flake_renc = fs::read(o.clone().inner());
info!("{:?}", flake_renc);
if let Ok(c) = flake_renc {
trace!("checking hash{:?}", c);

Expand Down Expand Up @@ -187,19 +185,14 @@ impl Profile {
// fs::create_dir_all(&renc_path)?;
let ren = SecretPathMap::init_from_to_renced_instore_path(&self).inner();
encrypted_iter.for_each(|(s, b)| {
// let base_path = sec_path.clone().inner().get(s).cloned();

let mut to_create = renc_path.clone();

// if let Some(n) = base_path {
// get store path from to_renced
let renced_store_path = ren.get(s).cloned().unwrap().inner();
to_create.push(renced_store_path.file_name().unwrap());

debug!("path string {:?}", to_create);
let mut fd = File::create(to_create).expect("create file error");
let _ = fd.write_all(&b[..]);
// }
});

let o = add_to_store(renc_path)?;
Expand Down
2 changes: 1 addition & 1 deletion test/admin
Original file line number Diff line number Diff line change
@@ -1 +1 @@
testtext1
etesttext1
14 changes: 6 additions & 8 deletions test/secrets/admin.age
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
age-encryption.org/v1
-> X25519 jggQJlb0GmLIbKkIizwmlWhaE9LSf3BBAWD+ILSfT2g
os7IUpxGGPHDUFMmdMH+cFficBmoEZ7XOsUdF5SIXFE
-> q1q-grease
TeHPrcUlQDewiUSOFG4+SubdQI8dh9t4pP1Fb/8
--- 20aU9ktspxBya/II0LkkftwVpKt9QWbGxpWcxiRYN/0

x���z�?s�ũMQQp���}k�D�Ad&�&��f�]��
-> X25519 XHE/2wKA1YWmWBkA2zyymd0xMw2Dg1FPS+uciceM1wA
N5znuzqGiQdqgqkd9YJrN5bi7XJMddGCIqgi/4MPfrM
-> `6##R-grease
0YS8jTSQFEBa4LirFdPqQIanCx6MCII0sSZz/Q
--- ttBuOaAvocaih9CclSMx1V1BxXh0CGTCbbMMgKy158o
(B��VfMu8�r'@e<��'���q^���!���3�W���Έd

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
age-encryption.org/v1
-> ssh-ed25519 IQ9o3A TBpSQyvcoyOAaXyIkM3jq+tvweFwWrjoW/rtXgMElz8
+QsxNNciWCTL1w/qLh/bDZSdYKX7cG9Wt4KV+93HsQo
-> 6j}cF8-grease 1L)q}| tu]M`Q
N7fmgKCRsZgFD0v/2CuZvY6KZYUVCEOmj9hkmUeJ9Jv6I/fe8mnWEDTbe8fyhyAj
itUSPOfMDJyDrlGaMQVJDmoy2gHRX+jifgCJuAOvmwJ80NMS55tV654
--- rsNLht+NS60yxcSIOd8h1cc5qCrvvNrmgONwZvUJMRs
����.@����ۿ��A>|]�� �(�%�NvR�Jf;��
-> ssh-ed25519 IQ9o3A T/0edI3ykr+37RXkJJQDyySimhm0K6kBGD7fTPolJB4
cFaLMCb/cWD8J8wSqyCPaxsAjIszEqm2818te0Ym6Bg
-> q_KoJ-grease et
A0H1RSGagmQC8yYfVNr700D67Yjdfco
--- tChEf6JM5gpHCfkEQerlQYcGmYwdpUL9a/0qbANkF98
��|J��M�9��ڧ��w�u`j�+/�/b�.�{h02S��&���R�
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
age-encryption.org/v1
-> ssh-ed25519 IQ9o3A 6Mu3T3CK/bkr5g6nkWKWgzAu102UekIQsyRyjCQvAgk
li31DAVi4OzurzrtNR9HWIIkgQZK7AL6EHNppVytUMA
-> .S-grease h]Ti J ,4 %S
6o39Z8FktKg0XWHSjIVLWA
--- jjx/XTeeTF/YS7nJJJZW/FeZn2Mg/87ZSrOcgnxW7i0
�J���Z���f�i�^]F~����x
����s�jh�6��w�
Expand Down

0 comments on commit df2d6d1

Please sign in to comment.