Find Jobs
Hire Freelancers

AES 128 encryption and decryption in java

$30-250 USD

In Progress
Posted over 9 years ago

$30-250 USD

Paid on delivery
write a program that uses AES-128 to decrypt a message. The program should be named "decrypt" and should accept 3-command line arguments as follows: decrypt cipher_file key_file target_file where 'cipher_file' is the name of a file that contains the encrypted text as a stream of bytes. 'key_file' is the 128-bit key for decryption stored as a stream of bytes, and 'target_file' is the name of the file where the outcome of the decryption should be stored. To test this program, here's an example of an encrypted message (link) and its 128-bit secret key (link) (right click and choose "Save As" to save the files on your PC). PART 2(a): you will try to use "brute force" to decrypt an encrypted message, where you only have the first 96-bits of the 128-bit secret key (last 4 bytes of the secret key are missing!) The program should be called findk, and invoked as follows: findk cipher_file key_file where 'cipher_file' is the file containing the encrypted message and 'key_file' is the file containing the first 96-bits of the key. The program should print out on standard output the missing 4 bytes of the key in hexadecimal, the decrypted message and the time it took to find the correct key. To test this part, here is the encrypted file (link), and the first 96-bits of the key (link) (right click and choose "Save As" to save the file on your PC). Hint: the original message starts with the word "Salam".. PART 2(b) this part is the same as Part 2(a) but a more challenging key. Hint: the original message starts with the word "Hello".. Here is the encrypted file (link) and the first 96-bits of the key (link). PART 2(c) (optional for extra credit if broken) this part is similar to Part 2(a) but only the first 64-bits are available. Hint: The message starts with "Salam Nawaf". If you are not able to decrypt the data in time, it is enough to mention the time you ran the program for. Here is the encrypted file (link) and the first 64-bits of the key (link).
Project ID: 6606280

About the project

1 proposal
Remote project
Active 9 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
A proposal has not yet been provided
$140 USD in 3 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of SAUDI ARABIA
Saudi Arabia
0.0
0
Member since Oct 17, 2014

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.