Encrypt TEXT File


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Encrypt TEXT File
# 1  
Old 07-08-2009
Encrypt TEXT File

Hi,

I need to encrypt the text file, Can anyone help me giving the code snippet.

Thanks in Advance.. Waiting for your reply

Regards
BS
# 2  
Old 07-08-2009
Which OS (Linux/Windows/Mac/Solaris/HP-UX/...)? Symmetric or Asymmetric encryption? Which Cipher (ROT13/XOR/AES/RSA/ElGamal/...)? What language? Did you use the search function of the site?

A hint can be found here
# 3  
Old 07-08-2009
new Widget

See "Encrypt and Decrypt" section
# 4  
Old 07-08-2009
Check whether you have "des"/"crypt" commands in your OS.

This I used to encrypt a file.
Code:
des -e f7 f7.out

===>f7 is the Input and the f7.out is the resultant.

This I used to decrypt a file.
Code:
des -d f7.out f7.dec

===>f7.out is the Input and the f7.dec is the resultant.

Note: f7 and f7.dec will be same.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Encrypt and Decrypt a File with Password

Hello, I have few files on unix which are payroll related and I need them to encrypt with password so others wouldn't see the data. I use ETL tool and would like to know the unix command that does encryption/decryption to use in the ETL. Thank you, Sri (3 Replies)
Discussion started by: eskay
3 Replies

2. Programming

Encrypt and Decrypt file using RIJNDAEL-128

Hi All, Can I use MCRYPT - (RIJNDAEL-128) / CBC mode to encrypt and decrypt a file? I am trying to find some sample C program on internet, which will encrypt and decrypt a file. But was not able to find any thing. Can some help me with the programming. Thanks. (1 Reply)
Discussion started by: Shre
1 Replies

3. Shell Programming and Scripting

Need help with file encrypt

Hi I need to encrypt the below file using the translate command to shift each letter five characters to the end of the character set. ALPHABETICAL FACTS. THE FIRST THREE LETTERS ARE ABC. THE MEDIAN LETTERS ARE MN. THE LAST THREE LETTERS ARE XYZ. THE FIRST WORD IN MY DISCTIONARY IS AAL. THE... (1 Reply)
Discussion started by: drew211
1 Replies

4. HP-UX

how to encrypt a file with ebcdic conversion

Hi guys! My sql*plus program generating dat file. so this dat file i want to write in destination sever path with ebcdic formate through SFTP only, because my destination server is mainframe it can read only ebcdic formate files only. could you please help on this........ i was written... (3 Replies)
Discussion started by: sgangadhar19
3 Replies

5. UNIX for Dummies Questions & Answers

How can i encrypt a text file using a key?

Hi My aim is to encrypt a text file using a key. I found a command 'crypt' in Unix. But it says -bash: crypt: command not found. Could any one tell me the package to install to get this work? Any other alternatives for encryption? I would like to do it from shell script. I'm using NetBSD... (4 Replies)
Discussion started by: renjumc
4 Replies

6. Shell Programming and Scripting

shell script encrypt a file using gpg

Hi, I have a requirement to encrypt a file using gpg with a public key. However when i encrypt a file, i get a question like 'Do you want to go ahead with unverified user?' . when i press 'y' file is encrypted. I am not able to automate this job because of this interactive mode. Could... (3 Replies)
Discussion started by: Deepakbabu
3 Replies

7. Solaris

encrypt file

dear all i have xml file on solaris contains password for the databse how can i encrypt the password but the apache can read the password after encrypt it or if any one have any idea to make no one can read the password except apache (1 Reply)
Discussion started by: murad.jaber
1 Replies

8. Shell Programming and Scripting

How to encrypt and decrypt a file

How to encrypt and decrypt a file using unix Command? Can any one help me? (2 Replies)
Discussion started by: laknar
2 Replies

9. Solaris

Decrypt Des file - then encrypt

Help.. I need to decrypt a file that was encrypted using DES 56 Bit. I have the encryption key and the block size used but no idea what utility to use.. I then need to encrypt the file using pgp and another key I have.. againt I dont know what utility to use. I am running solaris 9 .... ... (0 Replies)
Discussion started by: frustrated1
0 Replies

10. Shell Programming and Scripting

How to encrypt a script file

Dear all, I want to encrypt my script file so that other persons cannot change or view the script.How to do this ? Thanks, Nayanajith. (2 Replies)
Discussion started by: Nayanajith
2 Replies
Login or Register to Ask a Question