tindavid
asked on
How to open encrypted Unix text file (using vi -x) in Windows
I have a text file that is created in Unix like below:
$ vi -x mypass.txt
I would like to open this file in Windows using any kind of tools (prefer an editor)
Is there any tools that can do this ?
$ vi -x mypass.txt
I would like to open this file in Windows using any kind of tools (prefer an editor)
Is there any tools that can do this ?
gvim for Windows (free) will do it very nicely.
Get it from here:
ftp://ftp.vim.org/pub/vim/pc/gvim74.exe
It's a self-installing executable.
Once installed, open your file with gvim - you will be prompted for the encryption key.
Have fun!
wmp
Get it from here:
ftp://ftp.vim.org/pub/vim/pc/gvim74.exe
It's a self-installing executable.
Once installed, open your file with gvim - you will be prompted for the encryption key.
Have fun!
wmp
ASKER
The given solution still unable to open the encrypted text file.
Background: mypass.txt uploaded was created using vi -x in Solaris, this file can be open in HP-UX
Using gvim in Windows still unable to open this file, when using gvim to create an encrypted file, the is also cannot be open in Unix
I guess the encryption key is mismatched.
Please use the uploaded file: mypass.txt (created in Unix using vi -x ) password:abcd1234
Please help.
mypass.txt
Background: mypass.txt uploaded was created using vi -x in Solaris, this file can be open in HP-UX
Using gvim in Windows still unable to open this file, when using gvim to create an encrypted file, the is also cannot be open in Unix
I guess the encryption key is mismatched.
Please use the uploaded file: mypass.txt (created in Unix using vi -x ) password:abcd1234
Please help.
mypass.txt
Look at cygwin as a possible option
There are different options you could use perl to encrypt decrypt data provided the same modules, CBC:blowfish, etc. are available.
There are different options you could use perl to encrypt decrypt data provided the same modules, CBC:blowfish, etc. are available.
ASKER
I've requested that this question be deleted for the following reason:
Noone gives my a proper solution.
Noone gives my a proper solution.
ASKER
Their suggestion is to try an error in the area of no specific software or code. and nonone give me any suggestion for weeks. Please close it.
ASKER
I've requested that this question be deleted for the following reason:
No precise answer being given for weeks. give up! please close it.
No precise answer being given for weeks. give up! please close it.
ASKER
Dear Administrator,
If you are referring so call experts: arnold's comment:
Look at cygwin as a possible option
There are different options you could use perl to encrypt decrypt data provided the same modules, CBC:blowfish, etc. are available.
I want a tools that can extract encryped Unix text file that is transported from Unix, because I want to use batch command to extracted the information, this so call cygwin is to emulate a Unix Screen and and display the file content, it is not the type of solution I want ( besides, will it display an encrypted Unix text file ?) has he/she tried himself.
I would not considered trying using cygwin, suggestion of using perl has no "solution" but just a direction only. not a soluion unless he /she can demonstrate a proper soluion not just a hint.
If you are referring so call experts: arnold's comment:
Look at cygwin as a possible option
There are different options you could use perl to encrypt decrypt data provided the same modules, CBC:blowfish, etc. are available.
I want a tools that can extract encryped Unix text file that is transported from Unix, because I want to use batch command to extracted the information, this so call cygwin is to emulate a Unix Screen and and display the file content, it is not the type of solution I want ( besides, will it display an encrypted Unix text file ?) has he/she tried himself.
I would not considered trying using cygwin, suggestion of using perl has no "solution" but just a direction only. not a soluion unless he /she can demonstrate a proper soluion not just a hint.
you seem to have picked vi as your encryping mechanism likely because of simplicity and it was there.
GNU PG is one tool.
The scope of what you want/are trying can open up many possibilities.
perl is just one such option it all depends on whether you have the option to alter what you are currently using to something else.
If what you want was commonly used, a tool/combination would already be there. One often has to define what it is they want and then formulate a solution to achieve it.
Most programming languages have access to encryption such that when you cross platforms, different options are available to decrypt access the data.
What programming options are available to you? VB, C#?
How secure does your encryption must be? Steganography?
Presumably, the data is sensitive/secret so you might want to limit who has the knowledge on the method/s used in your scenario.
GNU PG is one tool.
The scope of what you want/are trying can open up many possibilities.
perl is just one such option it all depends on whether you have the option to alter what you are currently using to something else.
If what you want was commonly used, a tool/combination would already be there. One often has to define what it is they want and then formulate a solution to achieve it.
Most programming languages have access to encryption such that when you cross platforms, different options are available to decrypt access the data.
What programming options are available to you? VB, C#?
How secure does your encryption must be? Steganography?
Presumably, the data is sensitive/secret so you might want to limit who has the knowledge on the method/s used in your scenario.
ASKER
Ok, Put it simple if a solution can be provided then I am happy.
1) I will have an encrypted password file and this password file is created under a Unix (solaris) environment (why, it is because our practise)
$ vi -x mypass.txt
2) now, I will have this pass.txt be transferred from Solaris to HP-UX/Linux and I wish to open this file using a handy script (perl )
3) all I want from this file is the conten in the file (line by line)
I don't need any complicate tools to opne this encrypted pass file
If my request is of too simple to handle, then I will give up.
Thank you,
1) I will have an encrypted password file and this password file is created under a Unix (solaris) environment (why, it is because our practise)
$ vi -x mypass.txt
2) now, I will have this pass.txt be transferred from Solaris to HP-UX/Linux and I wish to open this file using a handy script (perl )
3) all I want from this file is the conten in the file (line by line)
I don't need any complicate tools to opne this encrypted pass file
If my request is of too simple to handle, then I will give up.
Thank you,
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
Hi Arnold, After some long discussion with other people, your approach is simple to achieve but I have to change my way of creating the encrypted password using perl script from the beginning. I will take this approach as perl is accepted in most of the platform.
Thank you for your help
Thank you for your help
ASKER