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; }
|
No responses found. Be the first to respond and make money from revenue sharing program.
|