Search

You searched for the word(s): userid:857003

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
  • 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)