网络安全
wmtopfire
生活就是一个大舞台,需要尽情的舞动自己!
展开
-
RSA公钥密码算法
此算法的 过程为:开始时选择两个素数p和q,计算它们的积n作为加密和解密时的模。接着需要计算n的欧拉函数值∅(n).∅(n)表示小于n且与n互素的正整数的个数。选择与∅(n)互素的整数e计算d。 代码模拟实现:#include <stdio.h> #include <stdlib.h> #include <math.h> int JM(int M,int e,int n){原创 2016-10-25 13:18:16 · 609 阅读 · 0 评论 -
Apache web服务器修改登录端口和访问端口的方法
利用ubuntu搭建的Apache web服务器,必须要修改Apache2 的默认端口80,因为这个端口往往会被多数黑客攻击,很容易会被修改或封闭,所以必须选择合适的端口,进行如下的设置: 1.修改 /etc/apache2/ports.conf 将 NameVirtualHost *:80和Listen 80修改为自己需要的端口,例如: NameVirtualHost *:1000 Liste原创 2016-10-27 19:18:51 · 5489 阅读 · 0 评论