I have few files on unix [...] and I need them to encrypt with password so others wouldn't see the data.
Unix offers a lot of utilities doing exactly that: uuencode, openssl and several others.
The problem you will be facing is not so much the encyption/decryption itself but to make sure nobody can intercept it. Suppose you use a password to encrypt your file you might have a script with the line
and then move/send/... the encrypted version of the file. But if someone can read your scvript he could take the password from there and use it himself to decrypt the file.
This means you have to plan carefully so that nobody without the proper rights have even read-access to such a script. As in most security-related problems the solution is very simple once you got the planning of who is allowed to do what under which circumstance correct.
For the tools to use i suggest you read the man-pages/descriptions of the two utilities i mentioned above. They are standard-UNIX tools and freely available open-source respectively. If what they can do suffices for your purpose we can help you put one or the other to work. If not, i suggest doing a Google-search for other such tools. There are reams and reams of software out there, for all kind of purposes. Once you have decided for one or the other we can (hopefully) help you put that o work too.
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)
Dear Experts,
I am using one script name :volume.sh and its written in bash shell script.
I just want to encrypt the script so that any one else cannot see it.
please tell me the commands how to encrypt the script as well as to decrypt it.
Regards,
SHARY (9 Replies)
Hi, I want to encrypt and decrypt a string(database password) which will be used in my scripts.
encrypt the string while storing in a file and while using it in other scripts
it should decrypt.
i tried below method. As it can decrypt easily, it is not recommended.
encrypt=`perl -e 'print unpack... (5 Replies)
I have script for all oracle prod db. I have hard coded the username / password. I need a mechanism to encode and decode the username / password in a shell script.
Another challenge is I use the username and password in a Select command for oracle DB. How can call the decrypted... (2 Replies)
Hi All,
I have stored Oracle database passwords in a hidden file - .pass_file.
My shell script reads the hidden file, gets the password and then logs in to the Oracle database and runs some SQL script.
My requirement is:
I need to provide the shell script to be executed by someone else. So,... (1 Reply)
Hi All,
very good morning all.
I am trying to connect to informatica repository by using shell script.
I have written pmrep connect command in the script file. But i need to provide repository, domain ,username and password to connect. Username and password are hard coded in the script... (8 Replies)
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)
Hello,
I have the following UNIX shell script which connects to the teradata database and executes the SQL Queries. For this, I am passing database name, username and password. I don't want to reveal my password to anyone. So, is there any way that I can encrypt my password and read the... (2 Replies)
Discussion started by: ronitreddy
2 Replies
LEARN ABOUT CENTOS
zipcloak
zipcloak(1) General Commands Manual zipcloak(1)NAME
zipcloak - encrypt entries in a zipfile
SYNOPSIS
zipcloak [-d] [-b path] [-h] [-v] [-L] zipfile
ARGUMENTS
zipfile Zipfile to encrypt entries in
OPTIONS -b path
--temp-path path
Use the directory given by path for the temporary zip file.
-d
--decrypt
Decrypt encrypted entries (copy if given wrong password).
-h
--help
Show a short help.
-L
--license
Show software license.
-O path
--output-file zipfile
Write output to new archive zipfile, leaving original archive as is.
-q
--quiet
Quiet operation. Suppresses some informational messages.
-v
--version
Show version information.
DESCRIPTION
zipcloak encrypts all unencrypted entries in the zipfile. This is the default action.
The -d option is used to decrypt encrypted entries in the zipfile.
zipcloak uses original zip encryption which is considered weak.
Note: The encryption code of this program is not copyrighted and is put in the public domain. It was originally written in Europe and can
be freely distributed from any country including the U.S.A. (Previously if this program was imported into the U.S.A, it could not
be re-exported from the U.S.A to another country.) See the file README.CR included in the source distribution for more on this.
Otherwise, the Info-ZIP license applies.
EXAMPLES
To be added.
BUGS
Large files (> 2 GB) and large archives not yet supported.
Split archives not yet supported. A work around is to convert the split archive to a single-file archive using zip and then use zipcloak
on the single-file archive. If needed, the resulting archive can then be split again using zip.
SEE ALSO zip(1), unzip(1)AUTHOR
Info-ZIP
v3.0 of 8 May 2008 zipcloak(1)