## Caesar Cipher Code

Hello. So, I'm a newbie, and this is my second hard assignment. In this assignment, I have to decrypt the message from the teacher (well, not only this, it should open and decrypt any text file). So, the example line would be:Ftq Pqoxmdmfuaz ar Uzpqbqzpqzoq ar ftq Ftudfqqz OaxazuqeUz OAZSDQEE, Vgxk ...

## New to java, Caesar Cipher question.

Well there are two parts of code I'm working on, one is a driver for Caesar Cipher and the other is the Caesar Cipher class itself. I can't figure out how to pass the information the user inputs from the driver class to the cipher class. Any help would be great, this is getting aggravating.public cl ...

## Help needed with Caesar Cipher

Hi, I'm trying to write a code for Caesar Cipher, I don't seem to be able to get it right, I'm having no compiling errors, but there're some real logical errors, the encryption function is working fine, but I'm having troubles with the decryption.I'd love it if someone helps me, but please if you ca ...

## problems debugging a caesar cipher

Hello, I am having problems debugging a program that was written to decrypt a caesar cipher. The program reads in a text file character by character into an array, determines which character appears most and declares it 'e', then proceeds to determine the "shift" to employ. Currently i hav ...

## C++ Caesar cipher

I've started programming C++ a week ago, so I cannot solve my problems easily. I've started a small project for learning classes, it's about encryption and stuff. I don't really get pointers, although I've read some about them. My problem is that when I use the cipher, it replaces all characters in ...

## Caesar Cipher Problems

So, I'm trying to create a Caesar Cipher using C++. It's supposed to be able to calculate the shift depending on what letter appears the most (which would mean that it's "e"). It's also supposed to have wrap around text, which I've tried to think of a way to have it done, but I just can't ...

## Python Caesar Cipher/ROT13 problem

'''Hi there, I am totally new to this site as well as Python. Luckily Python is a not too hard programming language to start with.I am trying to create a Caesar Cipher with ROT13 program that encodes user text ('a' - 'z' and 'A' - 'Z') to 13 (ROT13) places (where a turns to n...) and then also decod ...

## One-line Caesar Cipher help

I'm attempting to create a one line Caesar cipher decryption program in python and i'm afraid i've come to the end of my knowledge and well past it.this is the closest working code i've got:def test3(): print("The decrypted text is: "+"".join(map(lambda x: chr(ord(x)+y),x)))as yo ...

## C++ Caesar Cipher

I don't know if i did it right or not but can anyone help me with this code?You must output:HELLOWORLDYOUARECRAZYmjqqtctwqietzfwjhwffeTHIS IS MY CODE:#include <iostream>#include <cstring>#include <cctype>using namespace std;/** Description: This program operates on a command-line a ...

## C/C++ Caesar Cipher on a .txt file?

Hi, How would I go about using the Caesar Cipher technique on a .txt file? E.g. shifting each letter by 3?Here is my code?#include <stdio.h>#include <conio.h>#define CNTRLZ 0x1Achar sourceFileName[] = "H:\\text.txt";char commStreamName[] = "COM1";FILE *commStream;FILE ...

## Ubuntu [python] wrap-around Caesar cipher

Started working my way through Zelle's book (for the second time, got side-tracked), and I'm working on the exercises at the end of Chapter 4. #9 in particular is giving me some grief. If someone could nudge me in the right direction, I'd appreciate it.Basically expanding on a Caesar cipher (previou ...

## Ubuntu caesar cipher in C++ help please

guys im new to the forum even though i have been using ubuntu for a while now, I have to create a caesar cipher in C++ Given an input string and a number,x,between 1and 12, as an excersize in my IT course. im finding it really difficult as i have only previously coded in Visual Basic.the excersize s ...

## Ubuntu Caesar cipher in C

I've been experimenting these days with some C just because of fun and need some help.This code tries to substitute one single letter into a number (A=0, B=1, C=2, etc.), but for some reason it doesn't work and gets stuck into an infinite loop. This is the first step for a little Caesar Cipher encod ...

## Need help with Caesar Cipher program

I am hoping I can get some help from you guys, I am taking a computer security course and we need to write a Caesar Cipher program, where you can input the text and offset and get the the encrypted results back. I have run into a problem with it . I have not taken java in a year and so far can not f ...

## Need help with caesar cipher

Hello. I was wondering if anyone could help me with a caesar cipher program I am attempting to create. I was asked to write a caesar cipher encoder program. Ok. No problem. This is what i got:import stringdef main():print "This program will encode your messages using a Caesar Cipher"printk ...

## public/private key encryption and caesar cipher

I am new to encryption and have read a lot but still don't know what I'm doing. Just to clarify when using the keys is it just for a handshake between the client and server to allow access or does it affect the caesar cipher as well? because after looking at some examples I still don't have much of ...

## Help! Caesar Cipher Encrypt/Decrypt Assignment

Got this problem in one of my summer classes and I'm baffled about what to do. Some help would be greatly appreciated.Cryptology was a way for Julius Caesar to encode his messages. He applied a constant shift to each letter of the alphabet. His cipher is a method where the letters of the alphabet ar ...

## Caesar Cipher with PHP?

I'm interested in making a webpage where the user would input a message or whatever into a textarea and when they hit 'submit' the input would then be converted into a caesar cipher.Trying this with php confused the hell out of me and have no idea how to change the input. any help? a tutorial? ...

## public/private key encryption and caesar cipher

I am new to encryption and have read a lot but still don't know what I'm doing. Just to clarify when using the keys is it just for a handshake between the client and server to allow access or does it affect the caesar cipher as well? because after looking at some examples I still don't have much of ...

## Caesar cipher

I have been trying to create a simple encryption program it will read the txt from a .txt and then if plaintext encrypt it or if encrypted decrypt it to plaintext using the caesar's cipher I just can't get my head around as I am only new to c++ programmingAny help or ideas would be greatHere's what ...

## Help With Caesar Cipher/Shift

Well, hi, I wanted to make a program, which turns normal words into a Caesar shift.So...HELLOBECOMES;JGNNWThat is with a shift of two.I did not want to include IF statements in this, as that is 'lazy programming'I have made a program which will convert one letter, but no more...So... say, I typed A ...

## Caesar Cipher

Hey! (: So I'm working on a code that will encode/decode a caeser cipher according to a given "key word" from the user. I'm in AP Computer Science and only know as much java as the course teaches, so when offering possible solutions, try to er I guess stay on my level! ;pThis is what I hav ...

## Caeser cipher code breaker help (homework)

I am new to python and programming this is my first time using the code (first assignment). I need help with writing a program to convert the code message entered by the user into ascii numbers, then find which number occurs 12% of the time, and have it represent the letter E (also t is the second m ...

## From binary to Caesar cipher decoding

I'm writing a code that takes a 5-bit binary string from a file 'message.txt', converts it to integers. The encoded letters are assigned numbers starting with a=1, b=2, etc. So if the original letter is 'a' and the key(fixed number of spaces) is 2, the encoded letter is 'c' which is converted to 3, ...

## Caesar Cipher GUI

Well I decided to work on a GUI for this because I need the practice. However I ran into this weird problem.If I change line 67 from 1000 to 100 my program prints two of the last letter... http://pastebin.com/d656cfd09 (with 1000) http://www.grabup.com/uploads/195f84...199.png?direct with (100) http ...

## Need help decrypting encrypted 12 char message (caesar cipher shift 3)

I need help with decrypting a 12 character message located in a file named encrypted.txt then printing the decrypted message to the screen and a new file named decrypted.txt. This is what i have so far... and don't understand how to print the char to the screen as a letter instead of the ASCII value ...

## Caesar Cipher - Does not have a main method

i am trying to run this program...and it stays that it does not have a main method...public static void...but i have the public static final int...please let me know how i can get this program to run..thankspublic class CaesarCipher {public static final int ALPHASIZE = 26;public static final char [] ...

## Correct me if i'm wrong pls.....

here is my Caesar cipher code, can u pls have a look at it and correct me if i'm wrong. AREA text, CODE SWI_Exit EQU &11SWI_WriteC EQU &0ENTRY ADR r4, hello ADR r3, alphaADR r2, keyloop LDRB r0, [r4], #1 STRB r0, [r4], #1CMP r0, #0 BNE checkSWI_Exit 0x11check LDRB r1, [r3], #1STRB r1, [r3], ...

## cipher text idea ?

this is my code which copies 1st string into 2nd String. AREA StrCopy1, CODESWI_WriteC EQU &2ENTRY ; mark the first instructionmain ADR r1, srcstr ; pointer to first string ADR r0, dststr ; pointer to second stringBL strcopy ; copy the first into secondSWI 0x11 ; and exitsrcstr DCB " This i ...

## caeser cipher error.. pls help

I have this Caesar Cipher program, but it's decoding function is buggy. When you try to decode ABCDEFGHIJKLMNOPQRSTUVWXYZ it should return NOPQRSTUVWXYZABCDEFGHIJKLM but instead it returns DEFGHIJKLMNOPABCDEFGHIJKLM.I believe the code is in lines 36, 37, 43, & 44 and occurs when c becomes negati ...

## java- ceaser cipher program

i really need help with a programDevelop a program that uses dialog boxes to ask the user for the name of an input file, an output file, and if the input file needs to be encoded or decoded. Depending on the users input, the input file should be encoded or decoded using a Caesar Cipher (http://en.w ...

## Is my code too descriptive?

Today I decided to write a little Caesar cipher script in Python. After tweaking the code and testing it, I shot up my browser and had a look at other snippets on the web. I was shocked at what I saw.All of the Python solutions I went over were implemented in ~30 LoC. My implementation is ~160 LoC. ...

## Cipher discussion

I have been given a homework question asking to compare a made up Cipher along with know Ciphers, the cipher i have been given is called name cipher it takes the last letter of your first and second name and gives them a value and then adds them together an example would be Mac Apple = CE 3+5 = CE8. ...

## ROT-13 program

I was looking through the "beginner projects" looking for a way to use dictionaries so I could understand them better. I saw the caesar cipher suggestion and decided to run with that. I created a working one, but (as I saw in the "If...else") just because something works doesn't ...

## Writing function results

I have a program here, for encrypting text using caesar cipher....except, I don't know how to get it to input the encrypted text back into my input text box! Here's what i have so far: Any help appreciated, I'm sure it's only a minor thing but when I was getting help this morning I forgot to ask bef ...

## Decryption for One-Time Pad

all I'm new and I'm horrible at Java. I've written this decryption code for a Caesar cipher but now I need to decrypt a one-time pad. Is there any way to simply work with what I have and rewrite it to work with a one-time pad? Or must I start over. Here is what I have.import java.io.*;class Decrypt ...

## Encryption Program Problem

Having trouble with this code that resembles a Caesar cipher (alphabet letter shift). The task is to: (All lowercase letters)1. Design a function, encrypt, that when applied to an unencrypted string un_str, transforms un_str to an encrypted string en_str using a right shift of length s to the letter ...

## Trying to Make a Encryption Program (Help)

Ok, so I am trying to make a program that takes users text input and mixes around the lettering and such to do basic encryption and spits it back out like that. In 3 different ways, I am trying to do 6 basic functions 3 for encryption( 3 different types) and then 3 for decrypting the already encrypt ...

## Help with C# console application

I need help with creating a console application on C# :( If somebody can help I will be very thankful! Here is my exercise: The action of a Caesar cipher is to replace each plaintext letter with one a fixed number ofplaces down the alphabet. This example is with a shift of three, so that a B in the ...

## Encryption program

Hi, I am working on a multiple layer encryption program for my school IT project. Right now the message runs through a Caesar cipher (which the user can select the shift of), it reverses the message and then it reverses the bits of each character, making various symbols come out. Now I want to add a ...

## absolute beginner - urgently need help!

there, am working on an assignment to replicate the caesar cipher. i've written a function to move the cipher text one postion to the right and it works. i'm now trying to write another function that calls on the first where the signal character and index character do not match. The function then re ...

## new to assembly (help me out pls)

i'm very new to assembly and learning bit by bit but unfortunately i'm asked to write a program which encrypts a string using caesar cipher encryption method and then print that encrypted text and save into the address.i'm very hopeful that somebody will definitely solve my problem out and that will ...

## Help me!!!!

You are the leader of a crack intelligence unit, and today your team intercepted a set of encrypted messages ('ciphertexts') from 'IndyBoy', a well known and much feared terrorist leader. It is thought that these ciphertexts contain instructions to his henchmen on which targets to attack next.Your t ...

## Reading and editing characters in a string

I need to edit every character of a string for an assignment; apply a simple Caesar cipher on it. What is the C equivalent of "charAt()"? I remember my prof saying that all strings are terminated with a certain character in C and that you could run a while loop till that character, but I'm ...

## Help with a program.. :S

guys, my name is Ross. Im new to programming and i need some help with assembler. I have a menu with a number of options that the user can do. 1. The first one is the user must input a string of characters up to the limit of 25 and then give a error message. i can get the menu done with the input bu ...

## Problem - When run

Hi, Im trying to make a caesar cipher, but a windows error comes up when running. Where have I gone wrong??Sam//////////////////////////////////////////////////// ////// NAME: SAM BERWICK ////// DATE: 18/11/2010 ////// PROJECT: CAESAR CIPHER ////// /////////////////////////////////////////////////// ...

## Reading a text file into a string in C

Hi, I'm a newbie to programming in general and I'm really struggling with working out how on earth to do this!I am aware of how to open the stream and read the text file using fscanf, however I want to store the text in that file into a string and I'm not sure how to configure the fscanf to do this. ...

## Ubuntu C++ To Java bitwise encryption / decryption help

everybody, i'm having issues with my code (i'm kinda new to java).I'm trying to convert a c++ code snippet to java in order to use it in my application.Here's the C++ code#ifndef _ENCRYPTOR_H_#define _ENCRYPTOR_H_#include <stdio.h>#include <stdlib.h>#include "../Base/inc/SvrBase.h ...

## PHP Problem

This is string cipher function:<HTML><head><title></title></head><BODY><?php//functions for num manipulationfunction add_1 ($num){return (($num+1) % 26);}function sub_1 ($num){return (($num+25) % 26);}function swap_2 ($num){if ($num == 0)return (\$num + 1);elser ...

## Encryption Question

I'm trying to write a program that will encrypt/decrypt text from a text file, then save the processed form in a second file. With what I have so far, I open the file, put its contents into a string, then write the string to the second file. This just copies the content...Now, I'm trying to see how ...