Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/java/JAD反编译tricks.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,12 +217,12 @@ public final class DummyEnum extends Enum
{
return (DummyEnum[])$VALUES.clone();
}
// 调用父类的valueOf方法,并墙砖返回
// 调用父类的valueOf方法,并强转返回
public static DummyEnum valueOf(String s)
{
return (DummyEnum)Enum.valueOf(DummyEnum, s);
}
// 默认提供一个私有的私有两个参数的构造器,并调用父类Enum的构造器
// 默认提供一个私有的两个参数的构造器,并调用父类Enum的构造器
private DummyEnum(String s, int i)
{
super(s, i);
Expand Down
6 changes: 3 additions & 3 deletions docs/network/HTTPS中的TLS.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ HTTPS 使用 TLS 保证安全,这里的“安全”分两部分,一是传输
3. 发送者发送消息和 MAC 值
4. 接收者根据接收到的消息计算 MAC 值
5. 接收者根据自己计算的 MAC 值与收到的 MAC 对比
6. 如果对比成功,说明消息完整,并来自与正确的发送者
6. 如果对比成功,说明消息完整,并来自于正确的发送者

### 3.2.3. 数字签名

Expand All @@ -77,7 +77,7 @@ HTTPS 使用 TLS 保证安全,这里的“安全”分两部分,一是传输

### 3.2.4. 公钥密码

公钥密码也叫非对称密码,由公钥和私钥组成,它是最开始是为了解决秘钥的配送传输安全问题,即,我们不配送私钥,只配送公钥,私钥由本人保管
公钥密码也叫非对称密码,由公钥和私钥组成,它最开始是为了解决秘钥的配送传输安全问题,即,我们不配送私钥,只配送公钥,私钥由本人保管
它与数字签名相反,公钥密码的私钥用于解密、公钥用于加密,每个人都可以用别人的公钥加密,但只有对应的私钥才能解开密文
client:明文 + 公钥 = 密文
server:密文 + 私钥 = 明文
Expand All @@ -95,7 +95,7 @@ server:密文 + 私钥 = 明文

### 3.2.6. 密码小结

| 密码 | 作用 | 组成 |
| 密码 | 作用 | 组成 |
| :-- | :-- | :-- |
| 消息认证码 | 确认消息的完整、并对消息的来源认证 | 共享秘钥+消息的散列值 |
| 数字签名 | 对消息的散列值签名 | 公钥+私钥+消息的散列值 |
Expand Down