encrypting data from the command line

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
chr15b
Posts: 23
Joined: 17 Jan 2012 07:59

encrypting data from the command line

#1 Post by chr15b » 05 Mar 2012 10:25

not really a batch file question as such, but.. has anyone had the need to encrypt data from the command line using public/private keys or similar?

The issue is the password being in the batch file, i need to find some way of encrypting some data from the command line using a password (stored in the batch file) that cannot be used to decrypt it.

I found via google some discussions of the functionality of it being in 7zip - but the trail went cold

any ideas or suggestions gratefully received.

Thanks

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: encrypting data from the command line

#2 Post by foxidrive » 05 Mar 2012 15:39

EDIT: not applicable.
Last edited by foxidrive on 05 Mar 2012 16:16, edited 1 time in total.

chr15b
Posts: 23
Joined: 17 Jan 2012 07:59

Re: encrypting data from the command line

#3 Post by chr15b » 05 Mar 2012 15:46

Found a solution, gpg, it allows you to encrypt the file(s) just by specifying a name - to decrypt them you have to provide the key for the certificate.

Best of all, it's free :)

Post Reply