Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

- - - - -

Coder Battle #3: ASCII Encryption

encryption ascii

  • Please log in to reply
116 replies to this topic

#1 Guest_Jordan_*

Guest_Jordan_*
  • Guest

Posted 15 April 2009 - 08:42 AM

Welcome to the official thread for Coder Battle #3. If you haven't done so already, please read the rules here: http://forum.codecal...ttle-rules.html

Battle #3: Rules
For this battle you you will complete a Project Euler challenge: Problem 59 - Project Euler

Write your code to decipher cipher1.txt in the link above using any language of your choice.

Judging
The judges will analyze performance on your code basing the winner on several factors (speed, correct output, comments, how well written, following standards, etc). You should keep this in mind when building your algorithm and learn what weaknesses exist. This battle will be judged by the forum staff using a voting system similar to Battle #1. This means that moderators and admins cannot participate in this battle.

Submissions
Submissions must include source code and either directions for compiling or a compiled version.

Attach your submissions in a new thread in Forum Support.

Duration
Submission must be handed in by May 1st, 2009. That is 16 days from now so you have plenty of time.

Compete
If you want to participate in this battle please reply to this thread with the language you will be building your algorithm in.

Reward
The winner will receive a +rep from two of the mods/admins (~40 +rep).
Bonus: If more than 10 people submit, I will send the winner a LaCie 130869 4 GB iamakey USB Flash Drive

Posted Image

Runner-up will receive +rep from one of the mods/admins (~20 +rep).


Note:Your algorithm should be your own.

Attached Thumbnails

  • 31otzAea3AL._SL500_AA280_.jpg

  • 0

#2 brownhead

brownhead

    CC Addict

  • Advanced Member
  • PipPipPipPipPip
  • 167 posts

Posted 15 April 2009 - 08:56 PM

I'd like to enter. I'll be using C++.
  • 0

#3 BlaineSch

BlaineSch

    CC Leader

  • Expert Member
  • PipPipPipPipPipPipPip
  • 1559 posts

Posted 15 April 2009 - 09:32 PM

I am a bit confused sorry. So basically we have the text file which is something like:

encryption(ASCII) = #

and that file is like:

#,#,#,#

Right? And we basically have to do something like:

decrypt(#) = ASCII

Do we have to do this dynamically?
  • 0

#4 amrosama

amrosama

    CC Mentor

  • VIP Member
  • PipPipPipPipPipPipPipPip
  • 2765 posts

Posted 16 April 2009 - 12:57 AM

@BlaineSch: yes i think you are right

i think ill use c++
it seems easy, so it wont be about if it works or not, it will be about if it works perfectly or works okay
thnx jordan
  • 0
yo homie i heard you like one-line codes so i put a one line code that evals a decrypted one line code that prints "i love one line codes"
eval(base64_decode("cHJpbnQgJ2kgbG92ZSBvbmUtbGluZSBjb2Rlcyc7"));
www.amrosama.com | the unholy methods of javascript

#5 brownhead

brownhead

    CC Addict

  • Advanced Member
  • PipPipPipPipPip
  • 167 posts

Posted 16 April 2009 - 01:39 AM

I finished my submission, how can I send it to you? I can't seem to find a PM system..
  • 0

#6 amrosama

amrosama

    CC Mentor

  • VIP Member
  • PipPipPipPipPipPipPipPip
  • 2765 posts

Posted 16 April 2009 - 02:21 AM

if i were you i would wait more, theres still plenty of time.
and you may improve your code , because once its sent you cant change it.
  • 0
yo homie i heard you like one-line codes so i put a one line code that evals a decrypted one line code that prints "i love one line codes"
eval(base64_decode("cHJpbnQgJ2kgbG92ZSBvbmUtbGluZSBjb2Rlcyc7"));
www.amrosama.com | the unholy methods of javascript

#7 Guest_Jordan_*

Guest_Jordan_*
  • Guest

Posted 16 April 2009 - 03:16 AM

To submit, make a new thread in the support forum as per the rules. Read the submission section for Complete details.
  • 0

#8 Turk4n

Turk4n

    ???

  • Expert Member
  • PipPipPipPipPipPipPip
  • 1919 posts
  • Location:Sweden
  • Programming Language:C, Java, PHP, Python, Bash
  • Learning:C++, C#, JavaScript, Visual Basic .NET, Others

Posted 16 April 2009 - 07:56 AM

****, I really want to join in however, I have the weakness of going out of track while coding things not common for me :(
  • 0

#9 Guest_Jordan_*

Guest_Jordan_*
  • Guest

Posted 16 April 2009 - 08:17 AM

What do you mean?
  • 0

#10 Turk4n

Turk4n

    ???

  • Expert Member
  • PipPipPipPipPipPipPip
  • 1919 posts
  • Location:Sweden
  • Programming Language:C, Java, PHP, Python, Bash
  • Learning:C++, C#, JavaScript, Visual Basic .NET, Others

Posted 16 April 2009 - 10:58 AM

What do you mean?


As in, I won't do it properly...that's one of my problem, I can do whatever that it takes to get 'it'(which means whatever I desire and can grasp for). However I am kinda sloppy and lazy...
Which means I won't do it properly and that will result to over 9000 brain farts...
Before making anything...
  • 0

#11 WingedPanther73

WingedPanther73

    A spammer's worst nightmare

  • Moderator
  • 17757 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others

Posted 16 April 2009 - 11:21 AM

You've already shown that you are skilled. Besides, you could be our first Java entry :)
  • 0

Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

My MineCraft server site: http://banishedwings.enjin.com/


#12 PythonPower

PythonPower

    CC Addict

  • Just Joined
  • PipPipPipPipPip
  • 179 posts

Posted 16 April 2009 - 11:25 AM

I'll enter a solution in Python 3.

A question I have is: Do we need to print the sum of each character's ASCII value like the Project Euler question requires or is just decoding the text file enough.
  • 0





Also tagged with one or more of these keywords: encryption, ascii

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download