cryptography - Printable Version +- Forums - Open Redstone Engineers (https://forum.openredstone.org) +-- Forum: Off-Topic (https://forum.openredstone.org/forum-4.html) +--- Forum: Programming (https://forum.openredstone.org/forum-8.html) +--- Thread: cryptography (/thread-1405.html) |
cryptography - David - 11-19-2013 I've designed my own cryptography and made a java app to translate it from english to some weird stuff, and from weird stuff to english. Or any language really. here is the code: Code: package cryptography; It only handles lower-case letters noting more nothing less. There is also a limit to how long your word can be, that limit depends on your word. It also doesn't handle sentences, only words. Here is how it works: The first letter you translate is always the same letter (a = a, b = b, c = c etc.) The second letter you translate is shifted one (a = b, b = c, c = d etc.) The third letter you tanslate is shifted twice (a = c, b = d, c = e etc.) etc. Let's say we want to translate "ore". The first letter always is the same, so we've got this so far: "o.." The second letter is shifted one to the right, the r becomes s: "os." The third letter is shifted twice, the e becomes g: "osg" There you go ore would be osg. -David RE: cryptography - Thor23 - 11-20-2013 Since it seems like you don't know, the encryption you've got here is actually this: Vigenère_cipher RE: cryptography - David - 11-20-2013 (11-20-2013, 08:41 AM)Thor23 Wrote: Since it seems like you don't know, the encryption you've got here is actually this: Vigenère_cipher No it isn't. The encryption process is not the same like, at all. RE: cryptography - Xeomorpher - 11-20-2013 It is, except your's has a constant key, and is thus, less secure. RE: cryptography - Xeomorpher - 11-20-2013 though they're both pretty weak formats RE: cryptography - David - 11-20-2013 It was not intended for the military to send secret messages to somebody . And my goal is accomplished, just having fun while writing a java app. RE: cryptography - Chibill - 11-20-2013 I may copy with in my cousel for my version of SSH |