Jump to content

moocow

Members
  • Posts

    2
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

moocow's Achievements

Newbie

Newbie (1/14)

  1. Nope......provided that the book/file used as a key is long enough...in the crappy example i gave there were barely any words in the key. However, if we chose a book such as 'The Code Book by Simon Singh' (excellent book on this stuff btw) or say all the words used as replies in this thread, then you would have a crap load of numbers which all refer to the same letter. (its essentially a way of creating a homophonic substitution cypher with a shitload of homophones and an easy-to-remember key (well not easy to remember, but easy to look at, especially if you had a program for it).) if you were to try a frequency analysis on a piece of text (lets say this post) then you would find that each number would come up an incredibly small amount of times (due to the sheer amount of numbers we would have available for each letter). Hence it would not be possible to determine which letters are what through frequency analysis. pretty nifty eh ;) but like i said, the downside is you have to type in a large amount of text to make a good enough key (hence the reason being able to use a website's text might make the process alot quicker).
  2. Hey, sounds like a good idea, i was also thinking of creating a program with a bunch of encrypt/decrypt types...but as usual i was too lazy to be bothered making it haha. also, in regards to using the contents of a file as a key, its a freaken brilliant idea. In fact, it was one of the greatest ideas ever in terms of encryption. The Beale encryption (which worked on very similar logic) still hasnt been broken to this day (as far as i know). It was an encryption technique developed by thomas J. Beale, a gold miner, in the earlier 19th century. To skip the tale, it pretty much used a book (or other text) to create a substitution key by allocating the first letter of each word to their respective number that they came in the text e.g.: I(1) was(2) extremely(3) happy(4) and(5) amazed(6) when(7) i(8) found(9) this(10) site(11). A table of substitutions is then created: a:5,6 d: g: j: m: p: s:11 v: y: b: e:3 h:4 k: n: q: t:10 w:2,7 z: c: f:9 i:1,8 l: o: r: u: x: 7 4 5 10 11 6 4 6 10 = "whats a hat" ...its actually better to construct the above table using the numbers first with the associated letters...but meh. as you can see this very small text doesnt have enough to produce an alphabet, but with a large text (say a book, or from your example the code from a program or file!) you can have many substitutions for each letter, making it incredibly hard for the decryptor to decypher. in fact, you pretty much need the key text to do it if its a big enough key. As well as that, its extremely difficult to solve if it is a one of publication used as the key is a one off text. So maybe you could add a section which requires the user to specify a word document or txt file as the key. Then 2 people could simply exchange an unnoticeable file (e.g. a school essay) and use it as the text. since noone else would have the text it makes it fairly secure. anyway, sorry for the long post, just thought id add to the ideas. so in conclusion, yes, using a program such as notepad could be a good use of a key (you may need to split the characters into sets though...) but there are only so many programs to use which makes it slightler easier to figure out the key, also you cant use the same key multiple times or the security is dramatically decreased. therefore being able to specify a file created would be a good way of creating a secure key as well as using your brilliant idea ;) the downsides of this method are essentially the same as a one-time pad (a random key you use only once); namely: you and the reciever would need to have the file already (and of course you cant just send it or that defeats the security), its time consuming to make a new file each time you want a new key and in that point...you need to make a new key every time for absolute security. a REALLY awesome idea would be to allow a url to be entered and the html from the site to be used as a key of sorts...just an idea (probably a hard one to implement haha). sorry again for the freaken mammoth post, if you want me to help i also like VB.NET. ive got some other ideas, but i wont post them now...ive already typed too much.
×
×
  • Create New...