Results 1 to 5 of 5

Thread: Encryption

  1. #1
    dougie1809 is offline Senior Member
    Join Date
    Nov 2011
    Posts
    116
    Rep Power
    0

    Default Encryption

    Hi,

    How would you go about writing code to encrypt a drive. For an example, when you insert a USB drive, you will be prompted if you want to encrypt your USB drive.
    Relative info about what classes needs to be imported, what variables need to be instantiated, and the methods to be called.
    Thanks.

  2. #2
    santa's Avatar
    santa is offline Senior Member
    Join Date
    Nov 2009
    Location
    Sweden
    Posts
    208
    Rep Power
    5

    Default Re: Encryption

    I'm not an expert on encryption but what you want to do is change the bytes on the drive according to the encryption that you choose. I'v actually done a similar task before as a exercise in school. Are you looking for finished API's/Library's to help you or are you going to do all the programming?

  3. #3
    dougie1809 is offline Senior Member
    Join Date
    Nov 2011
    Posts
    116
    Rep Power
    0

    Default Re: Encryption

    Ok thanks. Yea il be doing all the programming from scratch. I have actually written code to listen to USB or other media drives when running. So when I insert my USB it prints ("Drive" +letterDrive+ " has been inserted"), and when unplugged, then prints out ("Drive has been unplugged").
    So now im not sure where to go from here i.e. to actually encrypt the drive.
    Thanks

  4. #4
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Location
    California
    Posts
    1,641
    Rep Power
    7

    Default Re: Encryption

    Did you do an internet search? This is the first hit for me when searching 'java encryption'
    Java Cryptography Extension
    In particular, look at the Cipher class.

  5. #5
    santa's Avatar
    santa is offline Senior Member
    Join Date
    Nov 2009
    Location
    Sweden
    Posts
    208
    Rep Power
    5

    Default Re: Encryption

    I would suggest to experiment a bit with bytes/binarys/bits fist (if you are not experienced in this field).

Similar Threads

  1. Encryption
    By Martin1512 in forum Advanced Java
    Replies: 0
    Last Post: 05-02-2011, 07:25 PM
  2. Encryption
    By stegano in forum New To Java
    Replies: 0
    Last Post: 03-01-2011, 04:13 PM
  3. How to encryption?
    By JavaCy in forum Advanced Java
    Replies: 1
    Last Post: 09-26-2010, 08:49 PM
  4. Aes Encryption
    By rohitpatidar3 in forum Advanced Java
    Replies: 7
    Last Post: 04-12-2010, 04:16 AM
  5. encryption
    By Joe2003 in forum Advanced Java
    Replies: 2
    Last Post: 02-06-2008, 10:27 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •