From be44dd1ebd1bd07f259e8a4b35b022b7f667df64 Mon Sep 17 00:00:00 2001 From: wildonion Date: Mon, 6 May 2024 23:41:43 +0330 Subject: [PATCH] no worthy commit --- .vscode/settings.json | 36 +++++++++++++++++------------------ crypter/src/cry.rs | 44 +++++++++++++++++++++---------------------- 2 files changed, 40 insertions(+), 40 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index f1e9ae1..307c52a 100755 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -10,28 +10,28 @@ "scrollbarSlider.activeBackground": "#288bb3", "scrollbarSlider.background": "#19241b", "scrollbarSlider.hoverBackground": "#288bb3", - "activityBar.activeBackground": "#90d79c", - "activityBar.background": "#90d79c", - "activityBar.foreground": "#15202b", - "activityBar.inactiveForeground": "#15202b99", - "activityBarBadge.background": "#8272cc", - "activityBarBadge.foreground": "#15202b", - "commandCenter.border": "#15202b99", - "sash.hoverBorder": "#90d79c", - "statusBar.background": "#6aca7b", - "statusBar.foreground": "#15202b", - "statusBarItem.hoverBackground": "#44bd5a", - "statusBarItem.remoteBackground": "#6aca7b", - "statusBarItem.remoteForeground": "#15202b", - "titleBar.activeBackground": "#6aca7b", - "titleBar.activeForeground": "#15202b", - "titleBar.inactiveBackground": "#6aca7b99", - "titleBar.inactiveForeground": "#15202b99" + "activityBar.activeBackground": "#693d55", + "activityBar.background": "#693d55", + "activityBar.foreground": "#e7e7e7", + "activityBar.inactiveForeground": "#e7e7e799", + "activityBarBadge.background": "#10140c", + "activityBarBadge.foreground": "#e7e7e7", + "commandCenter.border": "#e7e7e799", + "sash.hoverBorder": "#693d55", + "statusBar.background": "#492a3b", + "statusBar.foreground": "#e7e7e7", + "statusBarItem.hoverBackground": "#693d55", + "statusBarItem.remoteBackground": "#492a3b", + "statusBarItem.remoteForeground": "#e7e7e7", + "titleBar.activeBackground": "#492a3b", + "titleBar.activeForeground": "#e7e7e7", + "titleBar.inactiveBackground": "#492a3b99", + "titleBar.inactiveForeground": "#e7e7e799" }, "rust-analyzer.linkedProjects": [ "./Cargo.toml" ], "rust-analyzer.showUnlinkedFileNotification": false, "rust-analyzer.checkOnSave": true, - "peacock.color": "#6aca7b" + "peacock.color": "#492a3b" } \ No newline at end of file diff --git a/crypter/src/cry.rs b/crypter/src/cry.rs index 395cccd..c4e434b 100755 --- a/crypter/src/cry.rs +++ b/crypter/src/cry.rs @@ -47,13 +47,22 @@ pub mod wannacry{ pub use super::*; - pub async fn secure_session(){ + /* e2e and file and msg encryption using aes256 bits in wallexerr: see ed25519_aes256_test() test method - // use to secure the communication between client and server - // using zero knowledge proof - // ... + tools: RSA ed25519 ECC curve with aes256 hash in wallexerr, openssl and ring for RSA + KDF like sha256 and keccak256 + ransomewere, steganography and files encryption to generate unique assets by encrypting using + aes256 cbc with pbkdf2 + sha384 + salt then showing key and iv like: + + openssl aes-256-cbc -a -salt -pbkdf2 -in img.png -out img.png.enc -p + openssl aes-256-cbc -d -a -pbkdf2 -in img.png.enc -out img.png.new -p - } + openssl aes-256-cbc -md sha384 -in secret.txt -out img.png.enc -p + openssl aes-256-cbc -d -nopad -md sha384 -in img.png.enc -p + + gpg --output encrypted.data --symmetric --cipher-algo AES256 un_encrypted.data + gpg --output un_encrypted.data --decrypt encrypted.data + + */ pub async fn encrypt_file(fpath: &str) -> (Vec, SecureCellConfig){ @@ -364,23 +373,6 @@ pub mod eddsa_with_keccak256_signing{ pub mod zkp{ - /* e2e and file and msg encryption using aes256 bits in wallexerr: see ed25519_aes256_test() test method - - tools: RSA ed25519 ECC curve with aes256 hash in wallexerr, openssl and ring for RSA + KDF like sha256 and keccak256 - ransomewere, steganography and files encryption to generate unique assets by encrypting using - aes256 cbc with pbkdf2 + sha384 + salt then showing key and iv like: - - openssl aes-256-cbc -a -salt -pbkdf2 -in img.png -out img.png.enc -p - openssl aes-256-cbc -d -a -pbkdf2 -in img.png.enc -out img.png.new -p - - openssl aes-256-cbc -md sha384 -in secret.txt -out img.png.enc -p - openssl aes-256-cbc -d -nopad -md sha384 -in img.png.enc -p - - gpg --output encrypted.data --symmetric --cipher-algo AES256 un_encrypted.data - gpg --output un_encrypted.data --decrypt encrypted.data - - */ - pub use super::*; pub struct ZkpError; @@ -392,6 +384,14 @@ pub mod zkp{ Ok(()) } + pub async fn secure_session(){ + + // use to secure the communication between client and server + // using zero knowledge proof + // ... + + } + fn get_zkp_comparator() -> themis::secure_comparator::SecureComparator{ wallexerr::misc::Wallet::generate_zkp_comparator() }