• Post Reply Bookmark Topic Watch Topic
  • New Topic

encryption and decryption algorithms  RSS feed

 
jessica stud
Greenhorn
Posts: 14
Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need help with an assignment please.


Write two computer programs to simulate an Unicode stream cipher that consists of both encryption and decryption algorithms. The encryption program accepts inputs from an existing text file, called “letter.txt.” The encryption program produces an output ciphertext file, called “secret” The decryption program takes “secret” as input and decrypts it into a plaintext, called “message.txt.” (Hint: the random “seed” must be known, but be kept secure, by the pseudorandom number generators in both encryption and decryption programs.)
 
salvin francis
Bartender
Posts: 1612
36
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thats a very interesting assignment, What have you done so far ?

Which algorithm are you planning to use ?
I would suggest to look at one time pad, it matches your requirement as far as i understand. Also note that pseudorandom number generators is a huge topic by itself.
 
jessica stud
Greenhorn
Posts: 14
Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not a strong programmer. We have to use EVE. Not sure if you are familiar with that terminal.

What is my best option for the start of it?



 
Henry Wong
author
Sheriff
Posts: 23283
125
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
jessica stud wrote:I am not a strong programmer. We have to use EVE. Not sure if you are familiar with that terminal.

What is my best option for the start of it?


Not sure of what is being asked. Is this for help on starting the application / assignment? Or this for help on options for editors, compilers, and other setup, for the developement environment?

Henry
 
Naziru Gelajo
Ranch Hand
Posts: 175
1
Java Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's a very awesome looking assignment. Is it for a Data Structures & Algorithms class? What have you done thus far in the assignment. What kind of lanning have you started to do?
 
Tushar Goel
Ranch Hand
Posts: 934
4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suppose as per assignment, need to write a code to perform file encryption algorithm.

You need to know what type of algorithm, padding, key and IV.

Then you can use any of the method available most preferably CipherInputStream and CipherOutputStream
 
Campbell Ritchie
Marshal
Posts: 55761
163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

You have to use EVE? What is EVE?
 
jessica stud
Greenhorn
Posts: 14
Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am asking how I would go about starting this? What are the basics I have to research to get this code going?
 
jessica stud
Greenhorn
Posts: 14
Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Eve is a type of terminal we have to log into. Its ran unix linux. Its basically our terminal for our school.
 
Knute Snortum
Sheriff
Posts: 4081
112
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure how much Java programming you have done, but if you're looking for how to create a program, you can look here and here.  If you're looking for how to program this specific problem, I would begin by writing out the steps you would take to solve the problem one simple step at a time.
 
Junilu Lacar
Sheriff
Posts: 11164
160
Android Debian Eclipse IDE IntelliJ IDE Java Linux Mac Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
jessica stud wrote:I am asking how I would go about starting this? What are the basics I have to research to get this code going?

You have to give us a little more context so we know what "this" means. I hope you don't mean "How do I get this code going with EVE?" because you probably won't get much help on that from these forums.

What discussions/learning materials do you have from your class about encryption/decryption algorithms? Is that something that was discussed in your class? Do you have any example code you can use to pattern your solution after? Is there a specific library of utility classes for encryption/decryption/random number generation that your instructor has provided for you to use for this or do you have to use classes from the Standard Java API? I certainly hope you're not expected to write your own utilities to do all that.
 
Campbell Ritchie
Marshal
Posts: 55761
163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
jessica stud wrote:Eve is a type of terminal we have to log into. Its ran unix linux. . . .
In which case it will probably work similarly to the Bash shell I use for Fedora Linux. There is probably no difference in the Java® code from what you would write on Bash or a Mac or Windows®.
 
jessica stud
Greenhorn
Posts: 14
Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you. Found out eve is only a site used to transfer it. The project requires a regular java code. 3 different files to be exact. The encryption program accepts inputs from an existing text file, called “letter.txt.”

The encryption program produces an output ciphertext file, called “secret” The decryption program takes “secret” as input and decrypts it into a plaintext, called “message.txt.”

by the pseudorandom number generators in both encryption and decryption programs


 
Henry Wong
author
Sheriff
Posts: 23283
125
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
jessica stud wrote:I am asking how I would go about starting this? What are the basics I have to research to get this code going?


Well, assuming that you are allowed to use it for the assignment, Java does have encryption support built into the core platform. See this tutorial on getting started... https://docs.oracle.com/javase/8/docs/technotes/guides/security/crypto/CryptoSpec.html. ; I am not sure if it is outdated though, it has been a while since I used it...

Henry
 
Ivan Jozsef Balazs
Rancher
Posts: 999
5
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Campbell Ritchie wrote:Welcome to the Ranch

You have to use EVE? What is EVE?


In the crypto context Eve is usually the Bad Guy (Bad Gal), the (Wo)Man in the Middle wanting to intercept the messages and to do eavesdropping ;-)

Alice and Bob @ Wiki
 
Campbell Ritchie
Marshal
Posts: 55761
163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ivan Jozsef Balazs wrote:. . .  Eve is usually the Bad . . . Gal . . .
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!