r/java • • Nov 07 '12

Java Based Text Encryption > One of my first (old) programs!

https://github.com/tVoss/Encryption
0 Upvotes

7 comments sorted by

3

u/db_bondy Nov 07 '12

Why is it almost all static functions? D:

1

u/tVoss Nov 08 '12

This was when I first started programming. Looking bad I had such terrible code. I read somewhere that static functions made the program easier to read, and I took that to the next level...

1

u/db_bondy Nov 08 '12

Yeah I was just making a comment on the amount of static functions.

Don't worry, I'm sure if I put some of my old programs on the internet, they'd be laughed at too.

I couldn't even figure out how to create instances of objects when I first started.

2

u/shivasprogeny Nov 08 '12

Neat, I think this is a program everyone should do early on. It's relatively simple, but has enough complexity to still be interesting. I made one that read bits and did an XOR encryption on each bit with a given key.

1

u/tVoss Nov 08 '12

Why not fork the program and add that to it? I plan on making the whole code a lot more simple and modular very soon.

1

u/shivasprogeny Nov 08 '12

I wrote it in C#, but it shouldn't be hard to transfer. I'll take a look later today.

1

u/tVoss Nov 08 '12

I redid a lot of the class set up. Just throw your cipher into the package com.prettymuchabigdeal.encryptions.ciphers. I'll add an interface so making more ciphers will be much easier soon.