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
Akash Dani
NA
87
25.4k
Bad data exception in decryption
Jul 25 2019 11:54 PM
I am using TripleDES algoritm for encryption and decryption. When I try to decrypt the value it shows Bad data exception
Is there any way to solve this?
My code:
public string DecryptTripleDES(string CypherText, string key)
{
byte[] inputBuffer = Convert.FromBase64String(CypherText);
return Encoding.Unicode.GetString(PCIDSS.CreateDES(key).CreateDecryptor().TransformFinalBlock(inputBuffer,0, inputBuffer.Length));
}
Reply
Answers (
1
)
How to run two Active Forms that pass data back and forth.
Regarding comodo certificate.