Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Nov 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    javax.crypto: Can anyone create a simple encryption class?

    I am doing a science project comparing how different ciphers withstand bit flipping/removal.
    The files will be corrupted separately (by me with a hex editor), so don't include any checksums or anything similar.

    Could anyone make a class that uses javax.crypto to encrypt a file using AES, DES, and Blowfish such that it can be executed by a command like
    Code:
    java crypt (AES|Blowfish|DES) (encrypt|decrypt) key fileIn fileOut
    Please try to keep it in a single .java file.
    (I'd like to be able to see the source.)
    Last edited by InsDel; 11-22-2008 at 06:41 PM. Reason: clarification

  • #2
    Senior Coder shyam's Avatar
    Join Date
    Jul 2005
    Posts
    1,563
    Thanks
    2
    Thanked 163 Times in 160 Posts
    you want fries with that too?
    You never have to change anything you got up in the middle of the night to write. -- Saul Bellow


  •  

    Tags for this Thread

    Posting Permissions

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