Cryption and description for csv file


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Cryption and description for csv file
# 1  
Old 11-01-2016
Cryption and description for csv file

Hi,

Requirement is encrypt key should pick value from file instead of passing their in command.

how can i create .p file which contains crypt value.

i.e.

Code:
crypt <trade.csv> tr.x $CKEY fcrypt.p

crypt < tr.x $CKEY fcrypt.p

i want to encrypt and decrpt csv file and i am using following commands.

CKEY should get test file from some file.

encrypt
=========
Code:
crypt <trade.csv> tr.x $CKEY test

decrption
=========
Code:
crypt < tr.x $CKEY test



Moderator's Comments:
Mod Comment Please use CODE tags as required by forum rules!

Last edited by RudiC; 11-01-2016 at 10:45 AM.. Reason: Added CODE tags.
# 2  
Old 11-01-2016
What system is this? crypt isn't a commandline utility on Linux any more, and I don't think ever really worked the way you described it.
# 3  
Old 11-01-2016
You can encrypt using the much less archaic openssl utility:

Code:
openssl enc -pass file:passin -aes-256-cbc -in myfile -out myfile.aes256

openssl enc -d -pass file:passin -aes-256-cbc -in myfile.aes256 -out myfile.decrypt

Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Save output of updated csv file as csv file itself, part 2

Hi, I have another problem. I want to sort another csv file by the first field. result.csv SourceFile,Airspeed,GPSLatitude,GPSLongitude,Temperature,Pressure,Altitude,Roll,Pitch,Yaw /home/intannf/foto5/2015_0313_090651_219.JPG,0.,-7.77223,110.37310,30.75,996.46,148.75,180.94,182.00,63.92 ... (2 Replies)
Discussion started by: refrain
2 Replies

2. Shell Programming and Scripting

Save output of updated csv file as csv file itself

Hi, all I want to sort a csv file based on timestamp from oldest to newest and save the output as csv file itself. Here is an example of my csv file. test.csv SourceFile,DateTimeOriginal /home/intannf/foto/IMG_0739.JPG,2015:02:17 11:32:21 /home/intannf/foto/IMG_0749.JPG,2015:02:17 11:37:28... (10 Replies)
Discussion started by: refrain
10 Replies

3. Shell Programming and Scripting

Compare 2 files of csv file and match column data and create a new csv file of them

Hi, I am newbie in shell script. I need your help to solve my problem. Firstly, I have 2 files of csv and i want to compare of the contents then the output will be written in a new csv file. File1: SourceFile,DateTimeOriginal /home/intannf/foto/IMG_0713.JPG,2015:02:17 11:14:07... (8 Replies)
Discussion started by: refrain
8 Replies

4. Shell Programming and Scripting

Match columns from two csv files and update field in one of the csv file

Hi, I have a file of csv data, which looks like this: file1: 1AA,LGV_PONCEY_LES_ATHEE,1,\N,1,00020460E1,0,\N,\N,\N,\N,2,00.22335321,0.00466628 2BB,LES_POUGES_ASF,\N,200,200,00006298G1,0,\N,\N,\N,\N,1,00.30887539,0.00050312... (10 Replies)
Discussion started by: djoseph
10 Replies

5. Shell Programming and Scripting

Delete Description column from a csv file

Hi Friends, I have a scenario where in I need to implement the following logics. 1. Delete a column named "DESCRIPTION'" from a csv file(sample.csv). 2. Move "CURRENT_SALES" column to 10th position in columns from the same file. Thanks in Advance, Pons (10 Replies)
Discussion started by: ponnst
10 Replies

6. UNIX for Dummies Questions & Answers

Need to modify a delimited file using UNIX commands. Please find description

i have a '|' delimited file having 4 fields. now i want to sort the data by combination of first three fields without changing order of 4th field. input file looks like this: 3245|G|kop|45 1329|A|uty|76 9878|K|wer|12 3245|G|kop|15 1329|A|uty|56 9878|K|wer|2 3245|G|kop|105... (4 Replies)
Discussion started by: ankurgoyal2408
4 Replies

7. Shell Programming and Scripting

Need to compare two csv files values and write into another csv file

Hi all, Am new to scripting. So i just need your ideas to help me out. Here goes my requirement. I have two csv files 1.csv 2.csv abc,1.24 abc,1 def,2.13 def,1 I need to compare the first column of 1.csv with 2.csv and if matches then need to compare... (2 Replies)
Discussion started by: chinnahyd
2 Replies

8. Programming

transfer an open file description between two process

How can I transfer an open file description between two process? (1 Reply)
Discussion started by: xu_wen_dong
1 Replies

9. UNIX for Dummies Questions & Answers

How to change File Description

When I am browsing the web and I end up in a directory with no HTML index file (ie index.html), I see something like this: Index of /k Name Last modified Size Description -------------------------------------------------------------------- 115-1564_CRW.jpg ... (4 Replies)
Discussion started by: PearPie
4 Replies
Login or Register to Ask a Question