自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(10)
  • 收藏
  • 关注

转载 几编有关证书、数据加密解密和签名的好文章

http://www.cnblogs.com/yank/p/DigitalCertification.html http://www.cnblogs.com/yank/p/3528548.html http://www.cnblogs.com/yank/p/3533998.html

2016-05-27 23:26:04 232

原创 认证(Authentication)与授权(Authorization)

1. 认证(Authentication) 认证解决当前的操作主体(Subject)是谁的问题。我们最常用用户名和密码来认证一个主体。 2. 授权(Authorization) 授权解决谁有权限访问何种资源的问题。基于角色权限控制(RBAC, Role-based access control)的模型在授权方面用的比较广泛。更复杂的模型是基于属性的权限控制(ABAC, Attribu

2016-04-20 23:37:10 188

原创 理解安全的目标

参考《SSL 与 TLS 》(“SSL and TLS Designing and Building Secure Systems”) 1. 保密性(Confidential) 不应让无关人员看到不该看的消息。可以采用加密和权限控制的方法达到此目的。 2. 完整性(Integration) 消息不应被人篡改。可以使用数字签名的方法达到此目的。 3. 端点认证(En

2016-04-20 23:25:53 208

原创 倒转单向链表(Reverse Singly Linked List)

1. 图示 2. 代码 typedef struct Node { int data; struct Node *next; } *Node; Node reverseSinglyListList(Node head) { if (head == 0 || head->next == 0) { return head; } Node newHead = 0; whil

2016-04-14 22:40:28 345

原创 快速排序(Quick Sort)

1. 图示 2. 代码 void quickSort(int *a, int left, int right) { if (a == 0 || left = right) { return; } int key = a[left]; int i = left; int j = right; while (i < j) { while (i = key)

2016-04-14 18:30:56 446

原创 第一个程序(WIN32)_使用Notepad.exe和cl.exe

1. 使用Notepad.exe(记事本)编辑如下代码,并保存为hello.c文件 #include int main() { MessageBox(NULL, "Hello", "Hello", MB_OK); return 0; } 2. 使用cl.exe编译hello.c文件 cl.exe hello.c /link user32.lib 3. 运

2016-04-13 09:55:49 478

原创 第一个程序(C#)_使用Notepad.exe和csc.exe

 1. 启动Notepad.exe(记事本), 编写如下代码 2. 保存代码至文件:D:\new\hello.cs 3. 启动Developer Command Prompt for VS2013,用csc.exe编译hello.cs

2016-04-08 16:41:11 254

原创 第一个程序(C#)_使用Visual Studio

1.

2016-04-08 16:10:56 295

原创 第一个程序(C/C++)_使用Notepad.exe和cl.exe

1. 启动Notepad.exe(记事本), 编写如下代码 2. 保存代码至文件:D:\new\hello.c 3. 启动Developer Command Prompt for VS2013,用cl.exe编译hello.exe

2016-04-08 13:29:51 275

原创 第一个程序(C/C++)_使用Visual Studio

1. 运行Microsoft Visual Studio 2. 点击File, New, Project... 3. 选择Win32 Console Application, 点击OK 4. 点击Finish 5. 输入如下两行代码 6. 按F5键运行程序 7. 在以上窗口按回车键退出

2016-04-08 08:39:52 414

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除