Actually , i have encrypted file using vim -X option . Unfortunately i forget the encryption key. Is there any way to get back file without any data corruption .without knowing key.
Thanks.
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.
Sign up to join this communityActually , i have encrypted file using vim -X option . Unfortunately i forget the encryption key. Is there any way to get back file without any data corruption .without knowing key.
Thanks.
No, of course not. It wouldn't be very good encryption if there were a backdoor that let you get the plaintext without the key.
There's always brute-forcing, but if the key is very long it could easily take too long to be helpful.
Short answer: No, it is not possible. (As others have mentioned.) See ":help encryption
" and take note of the warnings.
Long answer: Vim can optionally use two encryption methods:
See ":help 'cryptmethod'
"
I will also reiterate what others have said here: The encryption would not be much use if it were so easily broken.
I suggest that you should always write your passwords down in a secure place; install a decent "password safe" application such as KeePass.
Can't be done. Although Vim just uses standard algorithms (AES, I believe) to encrypt/decrypt files, it doesn't matter what program or library you use you're not going to decrypt it without the key. Algorithms like these work not because they're unbreakable, but because it takes an insanely long time to brute-force them (as in thousands of years at current computing abilities).
If you had recently edited the file (when you last remembered the password), check in your temp folder, there should be a file with the contents. It would have a tilde at the end of the filename.