/// <summary> /// 解密 TripleDES。 /// </summary> /// <param name="service">给定的 <see cref="ISymmetricService"/>。</param> /// <param name="buffer">给定的字节数组。</param> /// <param name="token">给定的 <see cref="SecurityToken"/>(可选;默认使用选项配置)。</param> /// <returns>返回字节数组。</returns> public static byte[] DecryptTripleDes(this ISymmetricService service, byte[] buffer, SecurityToken token = null) => service.NotNull(nameof(service)).DecryptTripleDes(buffer, out _, out _, token);
public ByteCodecService(ISymmetricService symmetric, NetworkBuilderDependency dependency, ILoggerFactory loggerFactory) : base(dependency, loggerFactory) { Symmetric = symmetric.NotNull(nameof(symmetric)); }