/// <summary> /// Initializes a new instance of the <see cref="TripleDesMessageInterceptor" /> class. /// </summary> /// <param name="configuration">The configuration.</param> public TripleDesMessageInterceptor(TripleDesMessageInterceptorConfiguration configuration) { _configuration = configuration; }
public ConsoleExecuteResult EnableDes(string key = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", string iv = "aaaaaaaaaaa=") { Des = true; DesConfiguration = new TripleDesMessageInterceptorConfiguration(Convert.FromBase64String(key), Convert.FromBase64String(iv)); return new ConsoleExecuteResult("triple des encryption has been enabled"); }
/// <summary> /// Initializes a new instance of the <see cref="TripleDesMessageInterceptor" /> class. /// </summary> /// <param name="configuration">The configuration.</param> public TripleDesMessageInterceptor(TripleDesMessageInterceptorConfiguration configuration) { _configuration = configuration; DisplayName = "TripleDes"; }