• 10
  • Locked
Come up with an encryption/decryption mechanism. The program runs with one of the following sets of arguments: -e fileName fileOutputName -d fileName fileOutputName where: fileName is the name of a file to be encrypted/decrypted. fileOutputName is the name of the file where you need to write the re
You can't complete this task, because you're not signed in.
Comments (11)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
Justin Smith
Level 35 , Greenfield, USA, United States
7 October 2021, 14:05
If you got to this task and panicked like I did "OMG they didn't teach us anything about encryption yet" relax It's not real encryption. It would help if they said "Don't use any of Java's encryption classes. Just convert each byte to another byte, and be able to do this process in reverse."
Jurij Thmsn
Level 29 , Flensburg, Germany
13 April 2021, 15:50
Make sure you take "-e" and "-d" as arguments, not "e" and "d" !
22 February 2021, 21:24
Level 41 , Madrid, Spain
30 December 2020, 09:28
To those who got confused by "encryption/decryption mechanism". You can create your own mechanism:
byte = byte + 1
is an encryption mechanism. The analogous decryption mechanism would be
byte = byte - 1
Nyerges Ferenc
Level 23 , Bükkábrány, Hungary
8 November 2020, 13:35
Cool task :-) Passed for 2nd ( I should have remembered the difference between i++ and ++i :-) )
Level 22 , United Federation of Planets
18 October 2020, 19:36
This task was a lot of fun!
Agent Smith
Level 38
5 September 2020, 18:08
Wow, only 364 people managed to do this task by September 2020. Lowest I've seen so far! I'll leave a small hint: Caesar cipher It might look complicated to do at first, but in fact it is much easier to apply with files than with letters.
Level 20 , Poland
18 September 2020, 10:24
no of completions: 376 by now
Level 41
28 January 2021, 08:55
455 today.
Level 23 , Columbia, United States
22 August 2020, 21:51
All I found on the internet was Cipher encryption/decryption and that's apparently not on the Codegym system so it can't be used. I had to use the Help section for this one. Brutal. I'm taking intro to computer science this semester at my Uni so maybe they'll brush up on this.
Level 37
25 May 2020, 11:30
Important Note: For this task the args are as follows: args[0] = -e or -d args[1] = fileIn args[2] = fileOut It is not all in one string that you need to split as I thought.