[root@dhcp ~]# openssl rsautl -in testfile -out testfile.encrypt -inkey
my.key -encrypt
Enter pass phrase for
my.key:
[root@dhcp ~]# ll testfile*
-rw-r--r-- 1 root
root 12 Feb 20 15:36 testfile
-rw-r--r-- 1 root root 128 Feb 20 15:41
testfile.encrypt
-rw-r--r-- 1 root root 128 Feb 20 15:40
testfile.sign
[root@dhcp ~]#
[root@dhcp ~]# cat testfile.encrypt
.s?ve-9鲥_y????bwl?±Й?W4???;?Go?£:M????1u?a$?-G¨·l??KF?Uo??5?B`
?L?
у????R?°?B[root@dhcp ~]#
阅读(282) | 评论(0) | 转发(0) |