login about faq

Hello, I would like to encript a file using a public key generated with the RSA control, and decrypt it with the private key. I have found a example to encrypt/decrypt a string but not how encrypt a file. I have tried with "CkEncryptFile" method, but it does not run. (Only runs with a certificate). Is it posssible th encrypt/decrypt a file with a key generated with RSA control?

Thank in advance.

Victor Diego

asked Aug 20 '15 at 04:12

Victor%20Diego's gravatar image

Victor Diego

RSA encryption is NEVER used for the encryption of bulk data. RSA would be used to generate a symmetric encryption key for a symmetric encryption algorithm such as AES, TwoFish, Blowfish, etc. The file data is then encrypted using this symmetric key w/ the symmetric algorithm. This is what happens when a certificate is used. The reverse process is to decrypt the symmetric key using RSA, and then use the decrypted symmetric key for the decryption of the bulk data.


answered Aug 20 '15 at 09:43

chilkat's gravatar image

chilkat ♦♦

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Aug 20 '15 at 04:12

Seen: 611 times

Last updated: Aug 20 '15 at 09:43

powered by OSQA