Skip to content

Commit 6d51018

Browse files
committed
improve rsa security
1 parent c20bfb6 commit 6d51018

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/crypt/rsawrapper.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ use signature::{RandomizedSigner, SignatureEncoding, Verifier}; // Correctly imp
1414
/// best for pure Rust, least secure
1515
1616
// todo option for more secure
17-
//static BITSOFBITS: usize = 4096;
18-
static BITSOFBITS: usize = 2048;
17+
static BITSOFBITS: usize = 4096;
18+
//static BITSOFBITS: usize = 2048;
1919

2020
/// returns public, public_filepath, private, private_filepath
2121
pub fn generate_keys() -> Result<(Vec<u8>, Vec<u8>), Box<dyn std::error::Error>> {

0 commit comments

Comments
 (0)