9 matches found
RSA
RustCrypto: RSA 纯 Rust 编写的可移植 RSA 实现。 示例 use rsa::Pkcs1v15Encrypt, RsaPrivateKey, RsaPublicKey; let mut rng = rand::rng; let bits = 2048; let privkey = RsaPrivateKey::new&mut rng, bits.expect"failed to generate a key"; let pubkey = RsaPublicKey::from&privkey; // Encrypt let data = b"hello world";...
6.3AI score
SaveExploits0References4
20