Click here to Skip to main content
15,895,256 members
Home / Discussions / C#
   

C#

 
GeneralRe: Form loses focus Pin
fjdiewornncalwe15-Oct-10 4:32
professionalfjdiewornncalwe15-Oct-10 4:32 
QuestionRe: Form loses focus Pin
Luc Pattyn15-Oct-10 2:19
sitebuilderLuc Pattyn15-Oct-10 2:19 
AnswerRe: Form loses focus Pin
electriac15-Oct-10 2:35
electriac15-Oct-10 2:35 
GeneralRe: Form loses focus Pin
Luc Pattyn15-Oct-10 2:46
sitebuilderLuc Pattyn15-Oct-10 2:46 
GeneralRe: Form loses focus Pin
fjdiewornncalwe15-Oct-10 4:36
professionalfjdiewornncalwe15-Oct-10 4:36 
AnswerRe: Form loses focus Pin
fjdiewornncalwe15-Oct-10 4:33
professionalfjdiewornncalwe15-Oct-10 4:33 
GeneralRe: Form loses focus Pin
Paw Jershauge15-Oct-10 1:38
Paw Jershauge15-Oct-10 1:38 
QuestionHow to put a rsa private key "hiden" in the code, and encrypt something with RSA! Sending the public key to decrypt. Pin
Ongcos14-Oct-10 7:04
Ongcos14-Oct-10 7:04 
Hello everybody,
I don't know if here is the right section, if not, please change.

I need some support with this questions.
I will present here my problem:

Suppose I want a software to give to someone to encrypt text, and to encrypt the program should use the privatekey ( that only I know, but the program will need to encrypt data, so it must be hidden there) and to decrypt it should use the public key, that I can give to anyone.

So, now:

I have a private key and a public key, generated by open ssl: privatekey.pem and publickey.pem

Now, I need to be able to use those keys to encrypt and decrypt data.
the thing is, how I load the .pem to the program?
As I readed I need to load it to rsaparameters, but how I do it?

The type of the keys are:
-----BEGIN RSA PRIVATE KEY-----
MIICXQIBAAKB...

and
-----BEGIN PUBLIC KEY-----
MIGfMA0GCSqGSIb3DQEBA...

Any help would be very usefull, since I'm having a lot of troubles making it.
AnswerRe: How to put a rsa private key "hiden" in the code, and encrypt something with RSA! Sending the public key to decrypt. Pin
Alegria_Lee14-Oct-10 21:05
Alegria_Lee14-Oct-10 21:05 
GeneralRe: How to put a rsa private key "hiden" in the code, and encrypt something with RSA! Sending the public key to decrypt. Pin
Ongcos14-Oct-10 22:21
Ongcos14-Oct-10 22:21 
GeneralRe: How to put a rsa private key "hiden" in the code, and encrypt something with RSA! Sending the public key to decrypt. [modified] Pin
Ongcos15-Oct-10 2:05
Ongcos15-Oct-10 2:05 
GeneralRe: How to put a rsa private key "hiden" in the code, and encrypt something with RSA! Sending the public key to decrypt. Pin
Alegria_Lee15-Oct-10 3:06
Alegria_Lee15-Oct-10 3:06 
GeneralRe: How to put a rsa private key "hiden" in the code, and encrypt something with RSA! Sending the public key to decrypt. Pin
Ongcos17-Oct-10 22:51
Ongcos17-Oct-10 22:51 
GeneralRe: How to put a rsa private key "hiden" in the code, and encrypt something with RSA! Sending the public key to decrypt. Pin
Alegria_Lee18-Oct-10 4:34
Alegria_Lee18-Oct-10 4:34 
GeneralRe: How to put a rsa private key "hiden" in the code, and encrypt something with RSA! Sending the public key to decrypt. Pin
Ongcos7-Nov-10 22:23
Ongcos7-Nov-10 22:23 
QuestiongetPixel problem c# Pin
badescuga14-Oct-10 6:55
badescuga14-Oct-10 6:55 
AnswerRe: getPixel problem c# Pin
Rick Shaub14-Oct-10 7:11
Rick Shaub14-Oct-10 7:11 
GeneralRe: getPixel problem c# Pin
badescuga14-Oct-10 7:20
badescuga14-Oct-10 7:20 
AnswerRe: getPixel problem c# Pin
Luc Pattyn14-Oct-10 7:31
sitebuilderLuc Pattyn14-Oct-10 7:31 
QuestionRefresh User Control look Pin
Mazdak14-Oct-10 3:17
Mazdak14-Oct-10 3:17 
AnswerRe: Refresh User Control look Pin
Luc Pattyn14-Oct-10 3:35
sitebuilderLuc Pattyn14-Oct-10 3:35 
QuestionConvert color from RGB to Color name Pin
MrKBA14-Oct-10 0:22
MrKBA14-Oct-10 0:22 
AnswerRe: Convert color from RGB to Color name Pin
V.14-Oct-10 0:52
professionalV.14-Oct-10 0:52 
GeneralRe: Convert color from RGB to Color name Pin
MrKBA14-Oct-10 1:27
MrKBA14-Oct-10 1:27 
GeneralRe: Convert color from RGB to Color name Pin
V.14-Oct-10 1:35
professionalV.14-Oct-10 1:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.