poser

导航

2018年2月17日 #

C++强制类型转换

摘要: static_cast 任何具有明确定义的类型转换,只要不包含底层const,都可以使用static_cast。例如: int i = 3, j = 2; double slope = static_cast<double>(i) / j; static_cast还可以用于把void*转换成别的类型 阅读全文

posted @ 2018-02-17 20:55 poser 阅读(1091) 评论(0) 推荐(0) 编辑

加密解密一些基本概念

摘要: 术语: 明文:plaintext 密文:ciphertext 加密:encrypt,encipher 解密:decrypt,decipher 秘钥:key 密码除了保密以外,还提供其他方面的保障: 鉴别(authentication):消息的接收者应该能够确认消息的来源;入侵者不可能伪装成他人 完整 阅读全文

posted @ 2018-02-17 20:48 poser 阅读(1861) 评论(0) 推荐(0) 编辑