19a0a
![]() |
|
|
|
|
|||||||
| Userland Programming & Scripting C, C++, Python, Perl, Shell, etc. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
||||
|
||||
|
Howdy all,
probably each of us has private data (credit card Pin-code, account in email or host server/ssh/root password, in the end phone number Jasmin of erotic escort service ).In the past (when I used the WIndows OS) I wrote for me a small program encryption of text data using the method of public keys. It was a good program. I used it and after the transition to FreeBSD, using the true emulators/wine tool. All these I have kept on an external hard drive - which soon failed (broken). Now I've lost the source code, software and personal data. (To say there is nothing - a loser). I now have a question - is it worth to rewrite the program again? Or may have a similar under FreeBSD? How are you hiding from the wife of the phone a your girl friend? (sorry, ... your personal data).* I've seen a lot of programs - but ruled that the issue for discussion because it "delicate". I would like to do would have been encrypted data securely and the program not was "trojan" (do not send my passwords to developer). What would you recommend? (* It is desirable for the console). Thanks. Last edited by DutchDaemon; December 5th, 2011 at 02:15. |
|
#2
|
||||
|
||||
|
FreeBSD offers plenty of encryption facilities: for single files, for partitions or even the entire system.
Fonz
__________________
It's self-perpetuating a parahumanoidarianised. -- Queen: "Back to Humans" (best song lyric ever) |
| The Following User Says Thank You to fonz For This Useful Post: | ||
valsorym (May 11th, 2012) | ||
|
#4
|
||||
|
||||
|
__________________
Senior UNIX Engineer at Unix Support Nederland Experience is something you don't get until just after you need it. |
| The Following User Says Thank You to SirDice For This Useful Post: | ||
valsorym (December 5th, 2011) | ||
|
#7
|
|||
|
|||
|
I am using geli with md to create small crypted partitions.
Works nicely.
__________________
"Thousands of candles can be lighted from a single candle, and the life of the candle will not be shortened. Happiness never decreases by being shared" -- Buddha -- |
| The Following User Says Thank You to folivora For This Useful Post: | ||
valsorym (December 5th, 2011) | ||
|
#8
|
||||
|
||||
|
+1 for geli(8).
You can do pretty much anything from creating small encrypted partitions to encrypting the entire system including / and swap. The handbook has a section on geli (and gbde), but it focuses on encrypting an actual disk partition. For full system encryption search the HOWTO forum; several people have written HOWTOs for this, including The User Formerly Known As Killasmurf. For creating a small encrypted partition contained in a file (similar to a TrueCrypt container) you may want to use geli in conjunction with md(4) as already said by several people. There might be a HOWTO for that too, but don't shoot me if there isn't one (yet). Fonz
__________________
It's self-perpetuating a parahumanoidarianised. -- Queen: "Back to Humans" (best song lyric ever) |
| The Following User Says Thank You to fonz For This Useful Post: | ||
valsorym (December 5th, 2011) | ||
|
#9
|
|||
|
|||
|
Single files security/gnupg1
full disk encryption GELI(8) a kernel level stacked cryptographic filesystem, which transparently runs on top of existing file systems sysutils/pefs-kmod |
| The Following User Says Thank You to bes For This Useful Post: | ||
valsorym (December 7th, 2011) | ||
|
#10
|
||||
|
||||
|
Hi guys.
It's me, again, and it's my solution this problem (yep tool). Sorry that I do not listen to all of you, but I think easier to create my solution, than learn other programs. Note: 1. It only works with Latin alphabet. 2. The program completely fresh - has not yet been tested. Okay, no big program that allows you to encrypt text files are not very complicated, but rather a reliable method. In order to create/open an encrypted file, simply run: % yep <TEXTEDITOR> <FILENAME>For example: % yep vim ~/my_first_yep_file* Use the argument of -w to ask your protection key. For example: % yep -w doorways vim ~/my_second_yepfileTo get help: % yep -iTo change the password and the keyword: % yep -p ~/yepfileor % yep -w my_keyword -p ~/yepfileDuring operation, the program will create a directory / tmp / yep that will host the temporary files. For that to change this directory, use the argument of [i]-d [/ i]. For example: % yep -w doorways -d ~/tmp/ vim ~/yepfileDirectory structure: Code:
~/yep/
|__ bin/
|__ doc/
|__ src/
|__ ..
|__ .
~/yep/src/yep.c The full source code with syntax highlighting can be viewed here! ~/yep/src/Makefile Code:
# Project: yep # Date created: April 22, 2012 # Whom: valsorym <valsorym.e@gamil.com> # binary EXECUTABLE = $(.CURDIR)/../bin/yep # compiler CC = cc CFLAGS = -Wall -std=c99 LDFLAGS = -O2 # targets all: $(EXECUTABLE) $(EXECUTABLE): yep.o $(CC) $(CFLAGS) -o $@ $> $(LDFLAGS) yep.o: yep.c $(CC) $(CFLAGS) -c $> .PHONY: all clean run install clean: rm -f *.out *.o *.core run: $(EXECUTABLE) install: cp $(EXECUTABLE) ./bin/ ).P.P.S. No need to yell at me, I know that to create a bike again - bad! But I want to ..! Last edited by valsorym; May 21st, 2012 at 23:59. |
|
#11
|
||||
|
||||
|
Large amounts of output really belong on something like http://pastebin.com, which will give you a link you can post here.. It's in the forum guidelines.
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki Before you post: How to ask questions the smart way If you must know .. So, what does an Administrator/Moderator do? ---> Do not PM me with FreeBSD questions. I do not work here. <--- |
| The Following User Says Thank You to DutchDaemon For This Useful Post: | ||
valsorym (May 5th, 2012) | ||
|
#12
|
|||
|
|||
|
Quote:
vim -x <FILENAME>
|
| The Following User Says Thank You to bes For This Useful Post: | ||
valsorym (May 5th, 2012) | ||
|
#13
|
||||
|
||||
|
Quote:
Yes, you are right! But this is just vim editor, but if I will need to use: vi/ee (FreeBSD default editors), emacs, nano (Linux Gentoo default editor) ... etc. I can create yepfile on FreeBSD, for example, use vim % yep -w doorways vim ~/my_yepfileand then read (edit) it use nano in my Linux Gentoo % yep -w doorways nano ~/my_yepfileSo, I can use any others text editors. But, thank you! I didn't know this about vim
Last edited by DutchDaemon; May 6th, 2012 at 00:40. |
|
#14
|
||||
|
||||
|
Quote:
Now the full source code with syntax highlighting can be viewed here! Last edited by valsorym; July 29th, 2012 at 19:40. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Solved] Samba 3 and private shares | ZeWaren | Web & Network Services | 1 | August 31st, 2011 15:06 |
| My own private mailserver? | Caliante | Off-Topic | 10 | September 5th, 2010 16:46 |
| Routing between two private networks behind NAT | jem | Networking | 5 | November 9th, 2009 12:14 |