We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fail 1: https://github.com/EloiStree/HelloRustBending/tree/main/RustEveryDay/2024_06_17_D8_SignRSA Fail 2: https://github.com/EloiStree/HelloRustBending/tree/main/RustEveryDay/2024_06_21_D12_SignVerifiedFailed
I am blocked... I just try to do this in C#
public static byte[] SignData(byte[] data, RSAParameters privateKey) { using (RSA rsa = RSA.Create()) { rsa.ImportParameters(privateKey); return rsa.SignData(data, HashAlgorithmName.SHA256, RSASignaturePadding.Pkcs1); } } public static bool VerifySignature(byte[] data, byte[] signature, RSAParameters publicKey) { using (RSA rsa = RSA.Create()) { rsa.ImportParameters(publicKey); return rsa.VerifyData(data, signature, HashAlgorithmName.SHA256, RSASignaturePadding.Pkcs1); } }
But RSA on Crate is ... tricky.
The text was updated successfully, but these errors were encountered:
Ring ? https://docs.rs/ring/latest/ring/index.html Open SSL ? https://docs.rs/openssl/latest/openssl/
Sorry, something went wrong.
https://youtu.be/1H9FHhRntAk
Or... Maybe do a Websocket server with all the RSA tools in usable from Rust.
No branches or pull requests
Fail 1: https://github.com/EloiStree/HelloRustBending/tree/main/RustEveryDay/2024_06_17_D8_SignRSA
Fail 2: https://github.com/EloiStree/HelloRustBending/tree/main/RustEveryDay/2024_06_21_D12_SignVerifiedFailed
I am blocked... I just try to do this in C#
But RSA on Crate is ... tricky.
The text was updated successfully, but these errors were encountered: