Encryption and Decryption of Image file using AES and RSA
Can anyone help me with Encryption and Decryption of Image,Text,PDF,Word files using RSA algorithm with time and memory usage in asp.net c#??
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Vinay SinghRank #604 · 4K reputationPosted Mar 27, 2020, 8:16 AM EDT
Alex Dsouza113 reputationPosted Mar 27, 2020, 8:43 AM EDT
Rajanikant HawaldarRank #110 · 20.2K reputationPosted Mar 27, 2020, 8:22 PM EDT
Alex Dsouza113 reputationPosted Mar 28, 2020, 12:05 AM EDT
Alex Dsouza113 reputationPosted Mar 28, 2020, 7:20 AM EDT
Jignesh KumarRank #91 · 22.9K reputationPosted Mar 28, 2020, 8:57 PM EDT
Alex Dsouza113 reputationPosted Mar 29, 2020, 3:25 AM EDT
Alex Dsouza113 reputationPosted Mar 29, 2020, 11:42 PM EDT
Jignesh KumarRank #91 · 22.9K reputationPosted Mar 29, 2020, 11:57 PM EDT
Alex Dsouza113 reputationPosted Mar 30, 2020, 1:21 AM EDT
Marvin ReidRank #1,963 · 746 reputationPosted Nov 5, 2020, 5:53 AM EST
You can try using the LEADDocument class from the LEADTOOLS SDK as it supports both the loading of encrypted files and decryption. The PDFSecurityOptions class will let you apply encryption to your PDF documents. When loading in the document that is encrypted, you can add a check in your application to handle the loading and decrypting of your files:
using (var document = DocumentFactory.LoadFromFile(Path.Combine(ImagesPath.Path, "Protected.pdf"), options))
{
if (document.IsEncrypted && !document.IsDecrypted)
{
Console.WriteLine("Encrypted Document, decrypting it...");
// Decrypt it now
document.Decrypt("password");
}
}
https://www.leadtools.com/help/sdk/v21/dh/dox/leaddocument-isencrypted.html
https://www.leadtools.com/help/sdk/v21/dh/to/loading-encrypted-files-using-the-document-library.html
https://www.leadtools.com/help/sdk/v21/dh/dox/loaddocumentoptions-password.html
https://www.leadtools.com/help/sdk/v21/dh/pdf/pdfsecurityoptions.html