Posts tagged Code Breaking
Arras theme page comments
Jan 17th 2010
Ok so I ran into this while looking at my site after upgrading to wordpress version 2.9 and found that all my comments for pages disappeared but the post comments were fine, So I googled and found that arras theme has a conflict with wordpress v2.9. and this is the issue and wamo-bamo it worked!
My own RSS for music files from PHP
May 29th 2009
If you have read the previous post about the Website Music Player than you should be able to understand a little more about what is said in this post.
I was searching for hours and hours the other day and found some snippets of code to generate my music RSS and wow I love IT! I used PHP and xml to generate the RSS format.
I first had thought about how I generated the .xml code from the media player list and then found some things that could help in order to generate the correct information for the RSS feed.
So here is the code that I made that works: (put this code in a music_rss.php file)
Website Music Player
May 17th 2009
I am finally able to sit down and tell you about the media player that I put on my website. As you can see to the right is a music player and the code that I used is valid XHTML. So here we go:
Javascript Confirmation and variations
May 1st 2009
I wanted to make a pseudo login scheme for my page and came across some really cool stuff so take a look….
wp_get_archives(‘type=alpha’)
Apr 21st 2009
Thanks to great find I was able to make some sweet adjustments to my site. With some modification to what JTK said on his website I used some really cool drop down boxes to achieve what I wanted on my site. I will give you the code for both…
HTML Encoder
Apr 16th 2009
Have you ever wanted to encode your html to make it show up inside of um say wordpress post and not be ran through html scripting? Well here yah go: This will output that for you!…
Delete Post revisions
Apr 3rd 2009
So you have those crazy post revisions listed on your blog under your post development page. You also know for a fact that you don’t need to keep them and are happy with your current revision…
C-Code Shift Cipher
Jan 6th 2009
You need these following files to make it work:
This is the Dictionary so that it can check the words in the file
Cipher file that you can use to change to plain text
Cipher file much of same #2
Cipher file much of same #3
Cipher file much of same #4
Input file to change to cipher text
Input file much of the same #2
Input file much of the same #3
/* Project #4
Project Description:
In this project, you will implement three basic cryptography procedures for shift cipher.
Cryptography refers to the use of encryption (or encoder) to convert plain text information into
unintelligible gibberish (cipher text) for security purposes. A corresponding decryption
algorithm (or decoder) will convert the cipher text back to the plain text with the correct
decryption key. A code breaker tries to decode the cipher text without the key.
Shift cipher is one of the simplest cryptography systems. It encrypts the plain text message by
shifting each character for fixed number of characters down the relevant alphabet. This fixed
number is called the encryption key. For example, consider the English alphabet, when the
encryption key is 2, a, b, c, …, x, y, z will be shifted to c, d, e, …, z, a, b, respectively. A shift
cipher with encryption key 2 will convert the plain text “project” into cipher text “rtqlgev”. The
decoder in this case will be shifting each letter 2 position to the left, that is, replacing a, b, c, …,
x,y,z in the cipher text by y, z, a, …, v, w, x, respectively. It suffices for a code breaker in this
case to guess the value of the encryption/decryption key.
You need to write a single program to perform these three basic cryptography procedures at the
user’s choice. Assuming that a.out is the executable of your program:
a.out 1 input output key encodes input file with key and write cipher text to output
a.out 2 input output key decodes input file with key and write plain text to output
a.out 3 input output breaks the cipher text input and write plain text to output
The code breaker procedure tries all the possible key values and matches the words in the
corresponding plain text with the words in a dictionary “mydictional.txt”. The key that produces
the maximal number of matches will be considered as the key and will be used to generate the
plain text file output…

