DaemonForums  

Go Back   DaemonForums > Miscellaneous > Programming

Programming C, bash, Python, Perl, PHP, Java, you name it.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 3rd December 2011
anabolikas anabolikas is offline
New User
 
Join Date: Dec 2011
Posts: 5
Thanked 0 Times in 0 Posts
Default HDD security from flash

Hello, all!
I would like to protect my hard disk with password, which has to be on usb flash. I want hdd to read the password from that flash and it shuld be the only way to unlock when flash is inserted.
A there any programs to do that or maybe You can suggest how can I write the program myself?
Reply With Quote
  #2   (View Single Post)  
Old 3rd December 2011
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,873
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by anabolikas View Post
I would like to protect my hard disk with password, which has to be on usb flash.
It would be helpful if you mentioned which operating system you are targeting.
Reply With Quote
  #3   (View Single Post)  
Old 3rd December 2011
anabolikas anabolikas is offline
New User
 
Join Date: Dec 2011
Posts: 5
Thanked 0 Times in 0 Posts
Default

OpenBSD of course, or Fedora. I have bouth.
Reply With Quote
  #4   (View Single Post)  
Old 3rd December 2011
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,873
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by anabolikas View Post
OpenBSD of course...
For OpenBSD, study the bioctl(8) manpage.
Reply With Quote
  #5   (View Single Post)  
Old 3rd December 2011
anabolikas anabolikas is offline
New User
 
Join Date: Dec 2011
Posts: 5
Thanked 0 Times in 0 Posts
Default

Thank You, it may be very helpful. I'll try tonight.
Reply With Quote
  #6   (View Single Post)  
Old 3rd December 2011
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,873
Thanked 190 Times in 160 Posts
Default

You may find past discussions on the project's misc@ mailing list providing further insight. One such search through the archives yielded the following:

http://marc.info/?l=openbsd-misc&w=2&r=1&s=bioctl&q=b

Welcome to our community!
Reply With Quote
  #7   (View Single Post)  
Old 3rd December 2011
anabolikas anabolikas is offline
New User
 
Join Date: Dec 2011
Posts: 5
Thanked 0 Times in 0 Posts
Default

To tell the trough I didn't expect to find such tools, thinked You just show me the way how to write it in C, for example. My bad.
Nevermind, I'm grateful
Reply With Quote
  #8   (View Single Post)  
Old 5th December 2011
anabolikas anabolikas is offline
New User
 
Join Date: Dec 2011
Posts: 5
Thanked 0 Times in 0 Posts
Default

I've read the manual, but if I understood correnct, it works only when using raid. I don't use it. Maybe someone can suggest something more?
Reply With Quote
  #9   (View Single Post)  
Old 5th December 2011
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,873
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by anabolikas View Post
I've read the manual, but if I understood correnct, it works only when using raid.
Only one device (in your case, a USB device...) is required. From bioctl(8):
Code:
         C       CRYPTO: An encrypting discipline.

             The RAID 0 and RAID 1 disciplines requires a minimum of two
             devices passed to -l, RAID 4 and RAID 5 require at least three
             devices, and the CRYPTO discipline requires exactly one.
Reply With Quote
Old 5th December 2011
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,611
Thanked 214 Times in 189 Posts
Default

Quote:
Maybe someone can suggest something more?
The OpenBSD Journal published an article on encrypting the root file system in May of this year. While the goals of the author may be different from what you would like to do, the article describes using a key drive with softraid(4) and bioctl(8) with the Crypto discipline:

http://www.undeadly.org/cgi?action=a...&mode=expanded
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
No multimedia/adobe-flash-plugin or www/firefox-bin-flash... c_moriarty NetBSD Package System (pkgsrc) 9 28th December 2011 11:17 AM
Security Advisory for Flash Player, Adobe Reader and Acrobat J65nko News 0 6th June 2010 01:36 AM
Flash 10 Oko NetBSD Package System (pkgsrc) 14 9th June 2009 02:23 PM
USB flash drive criglerj NetBSD General 1 26th July 2008 01:25 AM
Flash syrushcw FreeBSD Ports and Packages 1 16th May 2008 02:24 PM


All times are GMT. The time now is 09:17 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick