C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




decreace length


Posted Date: 25 Jul 2008      Total Responses: 0

Posted By: saritha       Member Level: Gold     Points: 1


how to decrease the length of encripted format

this is th emethod.but here how to reduce..bec in backend its laking 150 size

SymmetricAlgorithm cipher = GetCommonCipher();

// Allocate storage for the IV, Key, and encrypted bytes
int blockSizeBytes = cipher.BlockSize / 8;
byte[] decryptionIV = new byte[blockSizeBytes];
System.Diagnostics.Debug.Assert(decryptionIV.Length == 16);
byte[] decryptionKey = new byte[cipher.KeySize / 8];
System.Diagnostics.Debug.Assert(decryptionKey.Length == 16);
int inputLength = obfuscatedPassword.Length - decryptionIV.Length - decryptionKey.Length;

// If this is not a multiple of the block size, then this a bogus encrypted packet.
if (inputLength <= 0 || (inputLength % blockSizeBytes != 0))
{
System.Diagnostics.Debug.Assert(false, "Bogus encrypted packet, inputLength = " + inputLength);
return null;
}




Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Post Reply
You must Sign In to post a response.
Next : regular Expression
Previous : Please dont send copied code...
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

silicone halloween masks

Contact Us    Privacy Policy    Terms Of Use