Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:857003
More Search Options
RSS Available
Matching Posts
How to solve Bad data error while decrypt the string using Algorithm in asp.net
Hello Experts, I am trying to decrypt the string in asp.net which is encryted in java.I am able to do it till some extent but its not completely decrypting. Here i am putting the code of both (Decryption through ASP.NET and Encryption through Java) private String Encrypt() /// Done in Java return encryted string { String hexString=""; String msg="Sample Input Text"; SecretKeySpec skeySpec ="GbxDwxcjvjtpi0+lQuyfHg=="; // Autogennerate Key try { Cipher cipher = Cipher
Posted to
Security
(Forum)
by
thanigaimaniveena
on 2/26/2009
Filed under: .Net 2.0
Re: How to solve System.Security.Cryptography.CryptographicException: Bad Data. error
Dear Experts, Actually my side whats going on ?. Encrypted string done in Java,we will use that encrypted string and then that autokey to decrypt the same string in asp.net. If i do encrypt and decrypt in asp.net,its working fine.when i used java encrypted string and that autokey in asp.net its showing following error. Server Error in '/WebSite1' Application. Bad Data. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace
Posted to
Security
(Forum)
by
thanigaimaniveena
on 2/26/2009
How to solve System.Security.Cryptography.CryptographicException: Bad Data. error
Dear Experts Thanx for reply.I gor idea from that links.One more doubt when i decrypt the ecncrypt string using auto generate key its showing error as System.Security.Cryptography.CryptographicException: Bad Data. I give the my function private void DecryptFunctionINGData() { try { string strEncrypt = "9FEDAB741C3B085859D22FB1DDE46F32" ; // Encrypt string TripleDESCryptoServiceProvider tdes = new TripleDESCryptoServiceProvider (); tdes.Key = Encoding .UTF8.GetBytes( "NlQr7tt/AJE/i
Posted to
Security
(Forum)
by
thanigaimaniveena
on 2/26/2009
Filed under: .Net 2.0
How to solve System.Security.Cryptography.CryptographicException: Bad Data error
Dear Experts Thanx for reply.I gor idea from that links.One more doubt when i decrypt the ecncrypt string using auto generate key its showing error as System.Security.Cryptography.CryptographicException: Bad Data. I give the my function private void DecryptFunction() { try { //string strEncrypt = "b0154bc4a0f77d3056ff0009563ec9ab"; string strEncrypt = "2f8ae3760636f348e0cb711c5109b78f" ; TripleDESCryptoServiceProvider tdes = new TripleDESCryptoServiceProvider (); //tdes.Key =
Posted to
Migrating from JSP/Servlets to ASP.NET
(Forum)
by
thanigaimaniveena
on 2/26/2009
Filed under: .net 2.0
Re: How to generate auto secret key in asp.net
Hi Thanx for reply.I got it. Now i want encrypt the input string using ciper class.I have some codes which is converted from java.I want use this function in .net i give the function as follows as 'Method for encrypt the input value using the secret key Private Function Encrypt( ByVal msg As String , ByVal skeySpec As SecretKeySpec) As String Dim hexString As String = "" Try Dim cipher As Cipher = cipher.getInstance("AES") cipher.init(cipher.ENCRYPT_MODE, skeySpec) Dim encrypted
Posted to
Migrating from JSP/Servlets to ASP.NET
(Forum)
by
thanigaimaniveena
on 2/25/2009
How to generate auto secret key in asp.net
Dear Experts, I had one function in converted from java for generate the auto secret key purpose for encrypt and decrypt the using using AES algorithm..when i used this function in .net its showing SecretKeySpec and KeyGenerator is not defined.Even i used System.Security.Cryptography header name space also. I give the my codes.If any body know help me Private Function keygeneration() As SecretKeySpec Dim skeySpec As SecretKeySpec = Nothing Try Dim kgen As KeyGenerator = KeyGenerator.getInstance("AES"
Posted to
Migrating from JSP/Servlets to ASP.NET
(Forum)
by
thanigaimaniveena
on 2/25/2009
Filed under: .Net 2.0
Page 1 of 1 (6 items)
WindowsClient:
Windows Client Developer Roundup for 12/28/2009
WindowsClient:
Snoop with 64 bit support
ASP.NET:
jQuery Hide/Close Link
ASP.NET:
Merry Christmas
TechNet Edge:
FPE Customer Story
Silverlight:
Being a writer, and having an editor. A Short Rant.
Channel 9:
Channel 9 Live at PDC09: Dr Brian Brooks (3M)
Channel 9:
C9 Lectures: Dr. Erik Meijer - Functional Programming Fundamentals Chapter 13 of 13
Silverlight:
Information for Silverlight HVP Developers…
WindowsClient:
Custom Content Loaders in Silverlight 4.0
WindowsClient:
MVVM Links\Info
TechNet Edge:
Check out how Dolly Parton uses IE8 and Web slices!!!
Silverlight:
A Silverlight HVP Update
Channel 9:
Channel 9 Live at PDC09: This Week on Channel 9 - PDC09 Daily Show Edition Day 1
Channel 9:
Maria Klawe: Scholar, Scientist and Microsoft Board Member
Channel 10:
Play the Bing Sherlock Holmes Game
Channel 9:
Channel 9 Live at PDC09: Loic Le Meur
Channel 10:
How to Delete Jump List Items
Channel 10:
Roll Back to Classic Network Indicator in Win7
Channel 9:
Jafar Husain: Silverlight Toolkit and Rx, Part 2
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online