c++ caesar cipher code

  • 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 ...

  • 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 ...

  • 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 ...

  • 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 ...

  • 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 ...

  • 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 ...

  • 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 ...

  • 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 ...

  • 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 ...

  • 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 ...

  • 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 ...

  • 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 ...

  • 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 ...

  • [C/C++] Help with code

    alright i have this code, and i want to know how to make it so when u click the button, it clears the screen and says somthing else. here is the code (got it off an example that came with my compiler)/** A basic example of Win32 programmiwng in C.** This source code is in the PUBLIC DOMAIN and has N ...

  • hai i need c#database connection code with variable declaration and also headerfile

    hai i need c#database connection code with variable declaration and also headerfile ...

  • 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 ...

  • Ubuntu C source parser/Code Browser

    I would like to know the availability of a C source parser/Code Browser, A source code analysis tool, for Ubuntu ...

  • How use DLL' export function( "C format") of C++ Build in code of VC++?

    How use DLL' export function( "C format") of C++ Build in code of VC++? ...

  • Help help! Linker error in turbo c (program and code provided)

    Ok, so I am going to write a GPS serial link software. I found a great free code in boondog website, but I have linking problem between gps1_5.cand ibmcom3.c. The error code is "Linker error: undefined symbol '_com_rx' in module gps1_5.c"...and 6 others similiar undefined symbol for functi ...

  • Is it possible to put .net or C++ or Java Code in PHP

    Is it possible to put .net or C++ or Java Code in PHP programming?Please advise ...

  • 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? ...

  • C++ Ubuntu Program Code to Copy Files

    I am writing a c++ program to move a file across a network. The file size is a few hundred kilobytes. The network is wireless but gets speeds of up to 100MBps. I am fairly inexperienced with C++ programming, but am very willing to do the hard yards and learn!I have tried searching the internet, but ...

  • 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 ...

  • Help translate C++ to C# please, small code

    I need this code translated to C#Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.LoadListe.BackColor = System.Drawing.ColorTranslator.FromHtml("#e7e2e8")txtTitle.Text = TitlecmdUpdate.Text = UpdateListcmdInfos.Text = InfoscmdSiteWeb.Text = WebMe.Text ...

  • C: Matrix SVD code

    As part of an assignment for class, I've written a method in C which calculates the SVD of a matrix by the Jacobi algorithm. The code (below) works well enough for small matrices (i.e., up through 5x5, occasionally 6x6). However, when I apply it to a larger matrix, the code is too slow to be useful. ...

  • C++ and IDL code sync issue

    I met with a problem when writing the experiment code. My issue is, how to sync code (e.g. struct definition in IDL and in C++ source files, like .cpp/.h).Suppose I manually added the following code in IDL, then how to add the definition of struct and also the GUID mapping of the struct name into C+ ...

  • C++ access .NET code

    I was told that to access .NET code, I have to use Managed C++ or expose the .NET bridge class as an ActiveX/COM objectI am not quite sure what this means. Would be great if someone can enlighten me a bit. ...

  • how to compile single-threaded C Run-Time code in vs2005?

    guys, the single-threaded c run-time is said to be removed from vs 2005. but i came accrose a lot of ready made libraries that require the support of c run-time. i don't know what to do.here is the note i found at msdn:Note The single-threaded CRT (libc.lib, libcd.lib) (formerly the /ML or /MLd opti ...

  • C/C++ Need a code sample in C for mysql_insert_id

    i am with mysql 4.1 but i think there are no big difference. i read all C api for mysql 4.1 but there is only definition of the function and there is no code sample. I don't want to use "Select last_insert_id" but a C function mysql_insert_id(); 10x in advance. ...

  • How to migrate Visual C++ MFC/ATL code to run from Windows 98 to Windows XP

    I have inherited a legacy Visual C++ MFC/ATL program that runs fine on Windows 98, but not on Windows XP. After re-compiling the code on VC++.net, and run the executable in Windows95/98 compatilibity mode, the program starts up alright, but hangs after trying to connect to a serial port.I then put t ...

  • how to input joystick in c++ to this code?

    I want to input joystick to my code,which is very simple smile.gif.I searched the net but find out that people use DirectInput , etc... but i want a very simple application, for example like when you pull right, a variable in the code changes from 0 to 10,whne you pull left another variable changes ...

  • C++ new balance code

    Cant figure out whats wrong with code. This is code should "write a program to compute the interest due, total amount due, and the minimum payment for a revolving credit account. The program accepts account balance as input from a file, then adds on the interest to get the total amount due. ...

  • Dev C++ error or code problem?

    [Linker error] undefined reference to `__cpu_features_init' comes to #include <stdio.h>int main(){char c;printf("Hello World!");scanf("%c", &c);}I don't think that it's code problem. What can I do? (Dev C++ newest version)(I tried reinstalling DEV C++) ...

  • RTRT with C++ 7.1 : Code Coverage for my DLL is 0% although tests are OK

    I have searched what is going wrong from 3 days... unsuccessfully !abstract: although tests are OK, Code Coverage is 0%.explanations:a) I have a DLL coded in C++ Visual 7.1 for which tests are OK (TestReport displays 5 tests are OK) ==> so I suppose the test script (file *.otd) has a good syntax( ...

  • 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, ...

  • I just started learning c++ and my code is messed up

    I'm a beginner (3wks into C++)Payroll program is due in 1hour.I can't figure out what is wrong with my program.it compiles, builds, and runs but when I enter the name, it goes straight to the end of the program.heres the code<code>#include <conio.h> #include <iostream>#include < ...

  • sample C++ address book code

    Does anyone have any sample Visual C++ sample code foran address book? I'm new to programming and need some help.I'm looking for code where I can add contact info and thensearch and delete it. ...

  • Where is UDP C/S source code ???

    Please give me UDP source code about server and client .This code should divided into two part, one is server code, and another is client code. This C/S program in both sides can "SendTo" data and "ReceiveFrom" data.Please give me one hand! ...

  • C++ Beginner Calculator Code Help

    everyone. I recently started using C++ and blah blah blah you know the rest.Using my extremely limited knowledge, I attempted to make a basic 4 function calculator CUI in C++. The code I wrote is as follows.#include <iostream>#include <string>#include <sstream>using namespace std;c ...

  • can i mearge C# and vb code in one project

    I want to know that, if i have developed a project using asp.net c# and i also in asp.net and code in vb.net, can i use any form of vb.net code in c#.net without any change?Please increase my knowledge. ...

  • C++ and 16bit code

    can anybody tell me, how to set the vc6 enviroment (with the precompiler settings and so on...), to compile simple c++ code to run on 16bit platforms without windows (like MS C++ 7.0 could do). I have a little app which has to communicate to an embedded enviroment with DOS.Any help, links or hints w ...

  • Linker error when C++ 6.0 code using STL is ported to Visual Studio 2005

    I wrote some code in C++ using Visual Studio 6.0. In that I used STL string by including <string>. It worked fine. Then I opened the same code in Visual Studio 2005 because I want to convert it into Visual C++.Net 2005.I get the following error. Let me know what things I should change if a C++ ...

  • C# and UnManagedd code.

    Is it true that C# can't generate unmanaged code??? ...

  • how to compile c and ncurses code in ubuntu linux?

    iwant to compile c code in ubuntu linux, bt unable to do so.i tried gcc command but it is givin d msg dat comman not foundpls help me.and if possible also give detail in formation 4 configuring SAMBA server.right from d start as i want to share home directory in MSHOME domain.also commands to add us ...