TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Anurag Maurya
NA
275
16.2k
I want to generate RSA key pair in C#. I am able to get xml
Sep 25 2017 6:57 AM
I want to generate RSA key pair in C#. I am able to get XML strings of keys, but I need base64 representations of them. Here is my code for XML
RSACryptoServiceProvider rsa =
new
RSACryptoServiceProvider();
privateKeyXmlText = rsa.ToXmlString(
true
);
publicKeyXmlText = rsa.ToXmlString(
false
);
but what I want is something like
privateKeyStr==
"MIICITAjBgoqhkiG9w0BDAEDMBUEEKaTCK5mE2MsQANxDAfaJe8CAQoEggH47qb6bFO+a2Fj..."
;
publicKeyStr ==
"MIIBKjCB4wYHKoZIzj0CATCB1wIBATAsBgcqhkjOPQEBAiEA/////wAA..."
;
any ideas?
Reply
Answers (
1
)
Unable to create the excel file after publishing the c# code
Connect Remote System Task scheduler using C#