General :: Encrypt A Shell Script?
Aug 23, 2010is there any good way to encrypt a bash script to make no one view its contents & so cant edit it
View 14 Repliesis there any good way to encrypt a bash script to make no one view its contents & so cant edit it
View 14 RepliesI Have shell script like this
Code:
#!/usr/bin/expect
set password "XXXXXXXX"
[code]...
We have some script files on our linux servers. For security purpose our requirement is to keep these files encrypted . I mean when we open the files it will looks like as for example i am showing you one encripted file of iur server. how can i do this.
one encrypted files from our server:-
[utibaadm@AIRTELVTUD2_UVAS01server_monitoring]$cat SOUTH_DTH_MONITOR.sh
#!/bin/sh
skip=14
tmpdir=`/bin/mktemp -d ${TMPDIR:-/tmp}/gzexe.XXXXXXXXXX` || exit 1
prog="${tmpdir}/`echo "$0" | sed 's|^.*/||'`"
[Code].....
How to encrypt the sessions in red hat 4.2.
View 4 Replies View RelatedI need to temporarily store a file containing sensitive data in a public server, in a secure way. I think that encrypting the whole file would be much more secure than creating a passworded .zip encrypted file, because they could be subject of brute force attacks. Attacking a whole file of unknow format is harder, I think. I thought of something like the command:
Code:
$ programidontknow --encrypt mysensitive.file --output-file mumblerumble.file
then the program asks interactively for a password)
$ ls
mysensitive.file mumblerumble.file
So I get one file that may look like junk. I tried to search how to do it with GnuPG. But it seems that GnuPG needs much configuration I dont want to do. I simply want to type the password one time to get the file. It doesnt need to retain any configuration for what I want to do. In similar scenario, I would want to do this on a machine/account that is not mine.
What 's the most popular command to do such things in terminal in linux?
View 4 Replies View RelatedHow do i encrypt & decrypt password in a file for security reason ? is there any shell scripts available to do the same?
OS : aix 5.3
If I have a partition like /dev/hd1 that is unencrypted and want it to be encrypted, but want to keep everything currently in that partition, how can I do that?
View 2 Replies View RelatedI'm using a crypt solution called DriveCrypt(for windows). But now I need a solution that does the same that DriveCrypt does but must to work in both Windows and Linux.Somebody know some software that works in Linux and Windows to encrypt folders?
View 2 Replies View Relatedi have a centos 5.4 without desktop environment. i can only access certain system settings via browser (and of course console). i would like to encrypt some folders. but these folders are used by the system. can i encrypt them? will the system still be able to access these folders? if yes, how can i encrypt only through console or is there something web based software for this?
View 12 Replies View RelatedSSH uses a keypair to encrypt traffic between the host and client. Which key is stored by the client ?
View 2 Replies View RelatedMACHINE: HP Proliant DL260G5OS: SLES 11 SP1kernel: Linux xserver 2.6.32.12-0.7-default #1 SMP 2010-05-20 11:14:20 +0200 x86_64 x86_64 x86_64 GNU/LinuxIt is used as remote xserver in a LAN.I have configured /usr/lib/restricted/bin/.rbashrc with some environment variables but when the users logon in the system finally is executed $HOME/.bashrc and some environment vars are overwritten.
View 2 Replies View RelatedI am looking to be able to encrypt using OpenPGP certain outgoing emails on my linux server. Currently I have GPG setup with a public key, however encryption outgoing emails prooved to be harded.After a bit of research I have found GNU Anubis which acts as a middlemad between the MUA and the MTA, by encrypting emails before they reach my MTA (Sendmail)However I am having a bit of problem with the configuration of bind and remote-mta, as specified by anubis.I have the sendmail service running on port 25 and I want to leave it there, but I have configured my php.ini SMTP port to 24. So it runs through port 24 first and anubis then forwards the emails via remote-mta to port 25Here are my anubis configs:
bind localhost:24
local-mta /path/to/my/sendmail
remote-mta localhost:25
With all those set, I can't seem to get the basic modication of emails to work. (trying to change a certain subject to something else, just to see that anubis is working). However emails are still working with port 24 as the SMTP port.
How can I make Debian encrypt and decrypt my home folder when I log in/out like Ubuntu does?
View 1 Replies View RelatedI want to encrypt Full partition instead of creating a file and encrypting it, and also want to move this disk to another server. do i need some files also (that hold keys) with my self on new server. i am using FC11.
View 2 Replies View RelatedI would like know when it is necessary or advisable to write a shell script instead of shell function ?
View 3 Replies View RelatedI am wondering if I can open a shell or new terminal thing from within the terminal in a unix/linux enviroment. Particularly a commandline only one where there is no GUI. Is this doable? how do I do it?
View 3 Replies View RelatedI was asked today if it was possible to encrypt a CDROM just as you would a disk - and I drew a blank. The question came up discussing a database we maintain with a lot of the organizations financial info plus ersonal membership data. Can I create and mount an encrypted CD? What are the performance effects? Is it a viable one to two year archive medium? The plan is to store period off-site backups and I can't get a grasp on the feasibility.
View 7 Replies View RelatedI would like the ability to right-click on a file and encrypt it, but after genning the PGP key pair in seahorse that option doesn't exist on the pop-up menu.
View 6 Replies View RelatedIs there an easy way to encrypt a usbkey in 10.04?
Do not mind getting my hands dirty in a terminal
I'm a bit confused about how ssh encrypts connections. I've read a few articles on ssh and they talk about 'keys pairs' (that is public and private keys) on the server and client computers. However, ssh doesn't seem to use these keys for encryption. What are the keys it uses? This question occurred to me when I was trying to make a remote login to an Ubuntu machine. From a remote login perspective, I haven't generated keys on my client machine and haven't enabled key based logins in ssh. (I use the default password based login). If there aren't any keys on my client, then how does encryption work?
View 9 Replies View RelatedWith the gpg command I used to encrypt files so they saved as plain text (the encrypted files were viewable in a plain text editor though were a encrypted nightmare)
I just forget the option in the gpg command to do this and I can't find it in a hurry either in the man file
I'm currently writing a simple script which uses luckyBackup to backup my /home directory to /tmp. I then want to tar it, encrypt it with gpg and move it onto a usb stick. My question is that suppose my hard disk died and I needed to restore from this USB backup, would I still be able to decrypt the file given that I would have lost gpg keys etc when the disk died? (I would still know the passphrase though). Should I be backing up gpg files separately?
View 9 Replies View Relatedif these are set to be encrypted on installation how would I go about changing that?
View 2 Replies View RelatedIm using gmail with https always turned on but what programs can i use to easily encrypt emails? Is pretty good privacy easy to use?
View 9 Replies View Relatedhave been trying for many hours to install Ubuntu 9.10, on a system that already had 9.10 installed on it at one point (so I know it should work!) I am using an alternate install, from a USB thumb drive. I use the alternate so I can encrypt the hd. Everything goes smoothly until I am to select extra packages to be installed. The only package I select is the ubuntu-desktop, and around 80% progress, or so, it fails. I then try and complete the base install, and then login to the command prompt and install there:
sudo apt-get install ubuntu-desktopIt then requests the Ubuntu disc, which of course I don't have. It has a landline internet connection. Do I need to configure something to tell it to look to the mirrors to find the desktop? Or, should it have been included in my iso image originally
I use this line to line to archive and password protect my files (with zero compression):7z a -p -t7z -mx0 ~/Documents.7z ~/Documents In the attached picture, I notice there is a check box to 'Encrypt the file list too' via the GUI 7z method. How could I add this option to the above 7z line?
Also I think rar allows you to 'Encrypt the file list too'. Could someone also give me a rar line similar to 7z a -p -t7z -mx0 ~/Documents.7z ~/Documents but that has the 'Encrypt the file list too' feature added?
I just bought a new Kingston DataTravler G2 16GB usb drive and was wondering if it was possible to encrypt the entire device.As in, it would require a password before even seeing any files. If possible I'd like something that works on all OS's but if not any suggestions would be great.
View 3 Replies View RelatedHow do I go about encrypting a file in Ubuntu 10.04?
View 9 Replies View RelatedI have a ext hdd..seagate go. And my 14 yr old son likes to get into it without asking me; of course i dont care when he asks but i don't really want him to get in there and erase anything. I am about to leave for training for 18 weeks with the military. Is there a way i can "secure" the drive for the amount of time that I can't take it with me?
View 8 Replies View Related