DotNetWorkQueue.Interceptors.TripleDesMessageInterceptor.BytesToMessage C# (CSharp) Method

BytesToMessage() public method

Decrypts the input byte array
public BytesToMessage ( byte input ) : byte[]
input byte The input.
return byte[]
        public byte[] BytesToMessage(byte[] input)
        {
            Guard.NotNull(() => input, input);
            using (var tripleDes = TripleDES.Create())
            {
                using (var tripleDesDecryptor = tripleDes.CreateDecryptor(_configuration.Key, _configuration.Iv))
                {
                    return tripleDesDecryptor.TransformFinalBlock(input, 0, input.Length);
                }
            }
        }
        #endregion