07-10-2002
Decrypting Unix file
Accidentally, I encrypted a file while saving it in vi editor.
While saving I used :X and when asked for encryption key, I simply pressed ENTER key without any input.
Now, I want to decrypt the file.
I searched the forum, but unfortunately didn't get the proper solution. In one of the threads it asked to visit a particular link which I couldn't access.
Can anybody please help me .
Regards,
Ravi.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Accidentally, I encrypted a file while saving it in vi editor.
While saving I used :X and when asked for encryption key, I simply pressed ENTER key without any input.
I searched the forum, but unfortunately didn't get the proper solution. In one of the threads it asked to visit a particular... (1 Reply)
Discussion started by: rkkiran
1 Replies
2. Shell Programming and Scripting
how do you go about doing this i have a shell script here below but i am not to sure on the process of decrytpting the file.
#!/bin/csh
#
#
set am = abcdefghijklm'
set am = ABCDEFGHIJKLM'
set nz = nopqrstuvwxyz'
set NZ = NOPQRSTUVWXYZ'
cat $argv | tr $am $AM | tr $NZ $nz | tr $nz $am... (1 Reply)
Discussion started by: master_6ez
1 Replies
3. Shell Programming and Scripting
Hi,
My local server is :/usr/abcd/
Remote server is :/Usr/host/test/
I want to send files from local unix directory(All files starting with O_999) to
remote host unix directory.
Can any body give me the Unix Shell script to do this.
One more doubt: Shall we need to change the file... (1 Reply)
Discussion started by: raja_1234
1 Replies
4. Shell Programming and Scripting
Hi Experts,
I have a requirement where i need to setup a batch job which runs everymonth and move the pdf files from unix server to windows servers.
Could some body provide the inputs for this.
and also please provide the inputs on how to map the network dirve in the unix like that... (1 Reply)
Discussion started by: ger199901
1 Replies
5. Shell Programming and Scripting
Dear Friends,
I want to decrypt 2 different file types in a folder (ZIP files and GPG files).
Each file type need different decryption syntex.
Hence, the script should identify file type and should act accordingly ignoring file name case i.e. upper or lower case.
Also, the extention can be... (6 Replies)
Discussion started by: anushree.a
6 Replies
6. Shell Programming and Scripting
Hello,
I am a newbie in Shell scripting. At the moment, I have a program written in C++ which gives an output file in text format. I would like to write a shell program which can take that output file and encrypt it and later if needed I want to decrypt it.
Could someone please help or... (3 Replies)
Discussion started by: Tanin
3 Replies
7. Programming
I know that simply encrypting and decrypting passwords in a script is as bad as storing them in plain text, but I've been searching for an answer to this for a few days now, and haven't found an answer that fits the problem I'm having.
Here's the scenario. I'll give more details than I think may... (3 Replies)
Discussion started by: mdrisser
3 Replies
8. Shell Programming and Scripting
Dear All,
Can someone help to command or program to transfer the file from windows to Unix server and from one unix server to another Unix server in secure way.
I would request no samba client. (4 Replies)
Discussion started by: yadavricky
4 Replies
9. UNIX for Advanced & Expert Users
Hello All,
Is there a way to determine how many public keys are embedded or used to encrypt in a GPG file with out decrypting the actual encrypted file. I know i can see the keys & email id's used when we decrypt it, but curious to find a command if any to know with out decrypting the actual file... (2 Replies)
Discussion started by: Ariean
2 Replies
10. Shell Programming and Scripting
Hi All ,
I am very new to unix script.I am aware of unix commands but never put together in unix script level.If any one can suggest me technical guidance in the below scenario that will highly beneficial.
Data have been already migrated from mainframe to Hadoop file system(HDFS).HDFS server... (15 Replies)
Discussion started by: STCET22
15 Replies
crypt(1) General Commands Manual crypt(1)
NAME
crypt - encode and decode files
SYNOPSIS
[password]
DESCRIPTION
reads from the standard input and writes on the standard output. password is a key that selects a particular transformation. If no pass-
word is given, demands a key from the terminal and turns off printing while the key is being typed in. encrypts and decrypts with the same
key:
The latter command decrypts the file and prints the clear version.
Files encrypted by are compatible with those treated by the editor in encryption mode (see ed(1)).
Security of encrypted files depends on three factors: the fundamental method must be hard to solve; direct search of the key space must be
infeasible; "sneak paths" by which keys or clear text can become visible must be minimized.
implements a one-rotor machine designed along the lines of the German Enigma, but with a 256-element rotor. Methods of attack on such
machines are widely known; thus provides minimal security.
The transformation of a key into the internal settings of the machine is deliberately designed to be expensive; that is, to take a substan-
tial fraction of a second to compute. However, if keys are restricted to, for example, three lowercase letters, then encrypted files can
be read by expending only a substantial fraction of five minutes of machine time.
Since the key is an argument to the command, it is potentially visible to users executing the or a derivative (see ps(1)). The choice of
keys and key security are the most vulnerable aspect of
EXAMPLES
The following example demonstrates the use of to edit a file that the user wants to keep strictly confidential:
...
...
...
Note that the option is the encryption mode of and prompts the user for the same key with which the file was encrypted.
WARNINGS
If output is piped to and the encryption key is given on the command line, can leave terminal modes in a strange state (see nroff(1) and
stty(1)).
If two or more files encrypted with the same key are concatenated and an attempt is made to decrypt the result, only the the first of the
original files is decrypted correctly.
FILES
for typed key
SEE ALSO
ed(1), makekey(1), stty(1).
crypt(1)