Thursday, December 17, 2009

How To Getshiny Pokemon On Emerald How To Write A Cryptographic Game Program In C Language?

How to write a cryptographic game program in c language? - how to getshiny pokemon on emerald

Write a program that encodes and decodes ads delivered to any user code. The code is built from a text file to read encoder / decoder matrix. Include spaces and punctuation common code.The user receives a menu of options, or encoding, decoding, or enter a new code on the keypad. How can you do?

1 comment:

Nick T said...

Obviously, your homework. The general idea is that you reinforce the concepts discussed in class. Expect others to do for you, it means that you think will never know yourself.

Sounds is a simple substitution algorithm, each character is replaced by another, it provides a minimum level of security.

What follows is a detailed pseudo-code that could be simplified, ie the use of a single encryption decoding function is for readability.

You can also extend the concept to the plaintext to extend through the update routine.

Pseudo code

plain text explaining that the matrix size (number of characters SUPPORT)
EncryptionKey declare that the matrix size (number of characters SUPPORT)
declared as a string

Flag as indicated value "true"
EncryptionKeyValid explain Boolean False

EncryptionKeyValid = read file encryption key

While (flag)
.. IF (EncryptionKeyValid) THEN
.... Show Menu
.... You UserSelECTION
.. ELSE
.... New User Selection = Enter the key
.. END IF

.. IF (encode the selected message) THEN
.... Enter the message encoder output
.... Get text
.... Encode a text using encryptionKey
.. Else if (selected messages received) THEN
.... Enter the output to decrypt message
.... Get text
.... Decode the text with encryptionKey
.. ELSE IF (Enter the new key, select) THEN
.... Enter the new key output for the following characters
Plain text output ....
.... Get text
.... If (valid keys (Text)) THEN
...... EncryptionKeyValid = True
...... EncryptionKey = text
Save ...... EncryptionKey deposit
...... Change in the code output.
ELSE ....
...... Output error: entering the validation key encryption is not. Old Key preserved.
.... END IF
.. Else if (output selected) THEN
Flag clear ....
.. END IF
END LOOP

Encode
.. declared invalid as a boolean true
.. LOOP for each character in text input
.... index = find (characterText Format)
.... If (index valid) THEN is
...... EncryptionKey character-output (Component Index)
ELSE ....
...... Output Error - Invalid / unsupported characters "(character)" in the input
...... valid = False
.... END IF
.. END LOOP
END Encode (return true)

Decode
.. declared invalid as a boolean true
.. LOOP for each character in text input
.... index = find (character encryptionKey)
.... If (index valid) THEN is
...... Single character of text output (index of the item)
ELSE ....
...... Output Error - Invalid / unsupported characters "(character)" in the input
...... valid = False
.... END IF
.. END LOOP
END Decode (return true)

Validate key encryption
.. declared invalid as a boolean true
.. IF (length of matches inputText (APOYO NUMBER character)) THEN
.... For loop (number of characters SUPPORT)
...... Account of events such as inputText
...... If (counter is greater than 1) THEN
........ valid = False
...... END IF
END LOOP ....
.. ELSE
.... valid = False
.. END IF
Validate key encryption END (return true)

Post a Comment