linux常用命令

●查看硬件信息相关命令(8个) ifconfig free fdisk ethtool mii-tool dmidecode dmesg lspci ●其它(19个) echo printf rpm yum watch alias unalias date clear history eject time nohup nc xargs exec export unset type ●系统性能监视高级命令(12个) uptime top free vmstat mpstat iostat sar chkconfig 内存: top free vmstat mpstat iostat sar CP. . .Read more

RSA 非对称加密原理,通俗易懂,快速掌握

RSA 加密原理 步骤 说明 描述 备注 1 找出质数 P 、Q - 2 计算公共模数 N = P * Q - 3 欧拉函数 φ(N) = (P-1)(Q-1) - 4 计算公钥E 1 < E < φ(N) E的取值必须是整数 E 和 φ(N) 必须是互质数 5 计算私钥D E * D % φ(N) = 1 - 6 加密 C = M E mod N C:密文 M:明文 7 解密 M =C D mod N C:密文 M:明文 公钥=(E , N)私钥=(D, N) 对外,我们只暴露公钥。 示例1、找出质数 P 、Q P = 3 Q = . . .Read more