ºìÁªLinuxÃÅ»§
Linux°ïÖú

ÓÃopensslÀ´¼ÓÃÜÎļþ

·¢²¼Ê±¼ä:2014-03-22 18:04:59À´Ô´:ºìÁª×÷Õß:tioced
opensslÒ²ÄܶÔÎļþ½øÐмÓÃÜ¡£Ã»Óд´½¨ÃÜÔ¿µÄ¹ý³Ì£¬Ò²Ã»ÓÐÏà¹ØµÄÅäÖÃÎļþ£¬Ö»ÒªÖ´ÐÐÒ»ÌõÃüÁî¾Í¿ÉÒÔ¶ÔÎļþ½øÐмÓÃÜ¡£°Ñ¼ÓÃܵÄÎļþ´«¸øÐèÒªµÄÈ˺ó£¬Ö»ÒªËûÖªµÀ¼ÓÃÜ·½Ê½ºÍ¼ÓÃÜ¿ÚÁ¾Í¿ÉÒÔ½âÃܲ鿴Îļþ¡£

opensslÖ§³ÖµÄ¼ÓÃÜËã·¨ºÜ¶à£¬°üÀ¨£ºbf,cast,des,des3,idea,rc2,rc5µÈ¼°ÒÔÉϸ÷ÖֵıäÌ壬¾ßÌå¿É²ÎÔÄÏà¹ØÎĵµ¡£¾ßÌåµÄ·½·¨ÈçÏ£º

1.¼ÓÃÜÒ»¸öÎļþ£º

[root@fxvsystem root]# openssl enc -des -e -a -in install.log -out install.log.des
enter des-cbc encryption password:
Verifying - enter des-cbc encryption password:

ÊäÈëÃÜÂëÖ®ºó£¬¾Í»áÉú³Éinstall.log.desÎļþ£¬Õâ¸öÎļþÃûÊÇ×Ô¼ºÖ¸¶¨µÄ£¬¿ÉÒÔËæÒâд¡£

ÆäÖУº
enc±íÃ÷Äã´òËãʹÓÃij¸öËã·¨
-desÊǾßÌåʹÓõÄij¸öËã·¨
-e ±íÃ÷Òª¼ÓÃÜ
-a ͬÑùÊÇʹÓÃASCII½øÐбàÂë
-in Òª¼ÓÃܵÄÎļþÃû×Ö
-out ¼ÓÃܺóµÄÎļþÃû×Ö

°ÑÉú³ÉµÄÎļþ´«µ½Áíһ̨»úÆ÷ºó£¬Ö´ÐÐÈçÏÂÃüÁî½øÐнâÃÜ

[root@fxvsystem gpg]# openssl enc -des -d -a -in install.log.des -out install.log
enter des-cbc decryption password:ÊäÈë¿ÚÁîºó£¬¾Í¿ÉÒԵõ½½âÃܺóµÄÎļþÁË¡£

ÆäÖÐ
-d±íÃ÷Òª½øÐнâÃÜ¡£
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 3 ÌõÆÀÂÛ

  1. leolindaming ÓÚ 2014-12-27 19:45:11·¢±í:

    1# tioced


    ·¹ý

  2. stanley873 ÓÚ 2014-08-19 10:30:11·¢±í:

    ×òÌì¸ÕѧϰÁËopenssl¼ÓÃÜÎļþµÄ·½Ê½£¬½ñÌì¾Í¿´µ½Õâ¸öÌû×ÓÁË

  3. rubin ÓÚ 2014-05-09 22:33:24·¢±í:

    ºÃÌû×Ó£¬±ØÐ붥°¡