问题描述
我使用加密文件存储我的密码多年。它已经使用Sun Solaris 10上的 vi -x
命令进行了加密。我现在试图在一个linux框中打开这个文件,两个 vi -x
和 vi -x -cm = blowfish
。可悲的是,这个文件完全搞砸了。我的猜测是在Solaris上使用了不同的加密算法。我如何找到使用哪种算法,以及如何使用更新版本的vi打开文件?
I used an encrypted file to store my passwords for years. It has been encrypted using the vi -x
command on Sun Solaris 10. I now tried to open the file on a linux box with bothvi -x
and vi -x -cm=blowfish
. Sadly the file is completely messed up. My guess is that a different encryption algorithm has been used on Solaris. How can I find out which algorithm has been used and how can I open the file with a more recent version of vi?
我知道正确的密码,我知道加密文件中的几个字。
I do know the correct password and I do know several words in the encrypted file.
PS:我没有任何访问solaris 10机器
P.S.: I do not have any access to a solaris 10 Machine anymore
推荐答案
我认为vi使用crypt函数。这是一个漫长的镜头,但如果您有权访问mcrypt,这应该解码solaris crypt:
I think vi uses the crypt function. This is a long shot, but if you have access to mcrypt, this should decode solaris crypt:
mcrypt -a des --keymode pkdes --bare --noiv --decrypt filename
old unix style crypt
old unix style crypt
mcrypt -a enigma --keymode scrypt --bare --decrypt filename
这篇关于vi加密:使用什么算法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!