Exemplo n.º 1
0
 /// <summary>
 /// 获取 DES 密钥。
 /// </summary>
 /// <param name="keyGenerator">给定的 <see cref="IKeyGenerator"/>。</param>
 /// <param name="token">给定的 <see cref="SecurityToken"/>(可选;默认使用选项配置)。</param>
 /// <returns>返回字节数组。</returns>
 public static byte[] GetDesKey(this IKeyGenerator keyGenerator, SecurityToken token = null)
 => keyGenerator.GetKey64(token);