摘要: 使用openssl生成公钥和私钥 C:\Users\Administrator\Desktop>openssl genrsa -out rsa_private_key.pem 1024 Generating RSA private key, 1024 bit long modulus ....... 阅读全文
posted @ 2020-03-23 22:28 heycomputer 阅读(739) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*- from Crypto import Random from Crypto.PublicKey import RSA import binascii def ByteToHex( bins ): """ Convert a byte string to 阅读全文
posted @ 2020-03-23 22:27 heycomputer 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 1.备份的目标为目录 #!/bin/bash cd /opt/backup NUM1=$(/bin/ls -l |grep "^d"|awk '{print $9}'|wc -l) NUM2=$(/usr/bin/expr $NUM1 - 3) /bin/ls -l |grep "^d"|awk ' 阅读全文
posted @ 2020-03-23 14:46 heycomputer 阅读(131) 评论(0) 推荐(0) 编辑