LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 04-27-2009, 04:21 PM   #1
fadetobright
LQ Newbie
 
Registered: Jul 2008
Location: RI
Distribution: Ubuntu & Debian
Posts: 3

Rep: Reputation: 0
Creating encrypted self-extracting archive in Linux


My boss wants an app for creating encrypted self-extracting archive in Linux (Ubuntu primarily)

His reqs:
- Must be free; i.e. no $$.
- Must allow for the creation of a passworded SEA (I'd rather not rely on keys for this)

Options:
- Command line activation would be nice.


help. please? Google is pulling up nothing usable for me.
 
Old 04-27-2009, 04:25 PM   #2
kentyler
Member
 
Registered: Dec 2008
Location: Cleveland Ohio
Distribution: CentOS
Posts: 235

Rep: Reputation: 36
You could write a nice bash script or php script to do this easily.
 
Old 04-27-2009, 04:25 PM   #3
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,084

Rep: Reputation: 336Reputation: 336Reputation: 336Reputation: 336
maybe this will help
http://linux.die.net/man/1/unzipsfx

http://gnubie.blogspot.com/2006/04/u...acting_22.html

http://librenix.com/?inode=1810
 
Old 04-27-2009, 04:30 PM   #4
fadetobright
LQ Newbie
 
Registered: Jul 2008
Location: RI
Distribution: Ubuntu & Debian
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by kentyler View Post
You could write a nice bash script or php script to do this easily.
Will it be able to have a pwd put on it? (not keys..)

(sorry, I don't do scripting or PHP...)
 
Old 04-27-2009, 04:30 PM   #5
fadetobright
LQ Newbie
 
Registered: Jul 2008
Location: RI
Distribution: Ubuntu & Debian
Posts: 3

Original Poster
Rep: Reputation: 0


Thanks, I'll show him these.
 
Old 04-27-2009, 09:59 PM   #6
cmdln
Member
 
Registered: Apr 2009
Location: Lawrence, KS
Distribution: Debian, Centos
Posts: 102
Blog Entries: 1

Rep: Reputation: 24
Create a directory

Code:
my_encrypted_package
drop your files inside the directory

tar, gzip, and ecrypt the directory

Code:
tar --create --gzip --file - my_encrypted_package | gpg --symmetric --armor --output my_encrypted_package.targz.asc
create a self extracting stub self_extract_gpg.stub
Code:
#!/bin/bash

ARCHIVE=`awk '/^__ARCHIVE__/ { print NR + 1; exit 0; }' $0`
tail -n+$SKIP $0 | gpg --output - - | tar xz
exit 0
__ARCHIVE__
Putting it all together ....
Code:
cat self_extract_gpg.stub my_encrypted_package.targz.asc > self_extracting_encrypted_archive.sh
chmod +x self_extracting_encrypted_archive.sh
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Extracting archive file to /opt? DaftDave Programming 14 04-01-2008 07:46 AM
LXer: Self-extracting Archive HOWTO LXer Syndicated Linux News 0 04-20-2007 06:01 PM
Extracting files from .bin archive Sir Loin Linux - Software 5 03-25-2007 09:12 PM
Extracting tar.bz2 archive through console grim_chel Linux - Newbie 3 06-28-2004 12:27 PM


All times are GMT -5. The time now is 07:31 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration