什么是none和null CipherAlgorithmType之间的区别?

时间:2017-05-22 12:04:28

标签: .net ssl encryption

.net Framework SSL流实现具有类型为<input type="password" name="password1" maxlength="4" size="25" readonly onfocus="this.removeAttribute('readonly');" autocomplete="off" />的属性CipherAlgorithm。此枚举包括CipherAlgorithmTypeNone。这两个值有什么区别?

从文档中我没有区别:

  

Null:未使用加密算法。

     

None:Null密码算法不使用加密。

1 个答案:

答案 0 :(得分:1)

'CipherAlgorithmType'类型

CipherAlgorithmType

无:未使用加密算法:

当Type设置为'None'时,明文将不使用任何加密,例如下面的示例。它将使用任何其他算法正常加密数据。

Null:Null密码算法不使用加密。

  

空密码,也称为隐藏密码,是一种古老的形式   明文与大量混合的加密   非密码材料。

在空密码中,明文包含在密文中,需要丢弃某些字符才能解密消息。