Murder Cheats Inc - BF2 Hacks - BF2142 Hacks - Counter-Strike Source Hacks - CoD4 Hacks - CoD WaW Hacks
All times are GMT -7. The time now is 04:21 AM.  

Welcome to the 187ci BF2 Hacks CoD4 Hacks BF2142 Hacks CoD WaW Hacks CSS Hacks forums.

We Have the Best Hacks, the Best Service, and the Best Game Hacking Community around. If you want to get access to our hacks, all you have to do is purchase our V.I.P. package. By doing this you will be supporting our site, our work, and this community. Your contribution will be much appreciated. You can Sign-Up Here.

If you have any problems with the registration process or your account login, please contact us. We look forward to seeing you in the forums!!

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-19-2009, 12:51 PM
Elite Subscriber
Young Lord
 
Join Date: Sep 2006
Posts: 95
snypr is on a distinguished road
iTrader: (0)
Help

< font>The encryption algorithm is to go character by character through the name, converting the letter to upper case, and finding the letter or space in this alphabet string: "ABCDEFGHIJKLMNOPQRSTUVWXYZ ". Find the index position of the letter or space in the alphabet string. If a character in the name is not in the alphabet string, display an error message. If the letter in the name is in an even position (we always start counting with 0 in C++), subtract the key, which is 9 for the first letter, from the index position. If the result is less than 0, add that number to 27, which is the length of the alphabet string. If the letter in the name is in the odd position, add the key, which is 3 for the second letter, to the index position. If the result is >= 27, subtract 27 from that number. The encryption key is 9 digits. Once you have gone through the nine digits on the encryption key, start back at index position 0. Here is some code to help you get started.

#include <iostream>
#include <string>
using namespace std;

const string ENCRYPTION_KEY = "936712845";
const int SIZE_ALPHABET = 27;

void main()
{
string name, newName;
int keyIdx, singleKey, singleChar, alphaKey;
string alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ ";

singleKey = ((int) ENCRYPTION_KEY[keyIdx]) - 48;

Sample Output from Program:

Enter name (blank to quit): Bob
Encrypted Name: TRW

Enter name (blank to quit): 987sdfsdf
ERROR - Invalid character in name

Enter name (blank to quit): Susan
Encrypted Name: JXMHM

Enter name (blank to quit): Thomas Jefferson
Encrypted Name: KKIT USN OCKKTMV

Enter name (blank to quit): Abraham Lincoln
Encrypted Name: SELHGCEDGRKIHML

Enter name (blank to quit): DeVry University
Encrypted Name: VHPYXBMRDDBXLJRF

Enter name (blank to quit):
Press any key to continue

Can someone make an ecription its for my class and i suck at it. Nothing advanced.
Reply With Quote
  #2 (permalink)  
Old 04-19-2009, 04:58 PM
Platinum Subscriber
Dark Knight
 
Join Date: Aug 2007
Posts: 509
Thats_my_milk_shake is on a distinguished road
iTrader: (0)
When is it due?
Reply With Quote
  #3 (permalink)  
Old 04-19-2009, 08:06 PM
Elite Subscriber
Young Lord
 
Join Date: Sep 2006
Posts: 95
snypr is on a distinguished road
iTrader: (0)
Its due today!
Reply With Quote
  #4 (permalink)  
Old 04-19-2009, 08:49 PM
astro1002's Avatar
Elite Subscriber
Very 1337
 
Join Date: Feb 2008
Location: Here
Posts: 1,309
astro1002 has a spectacular aura aboutastro1002 has a spectacular aura about
iTrader: (6) 100% Positive
No pressure Milk_Shake...lol
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Arabic Bulgarian Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch Finnish French German Greek Hebrew Hungarian Italian Japanese Korean Norwegian Polish Portuguese Romanian Russian Serbian Slovak Spanish Swedish Thai Turkish

Total Page Views: 33,316,335, Page Views Today: 15,139
Page generated in 0.09378004 seconds (90.51% PHP - 9.49% MySQL) with 14 queries
All times are GMT -7. The time now is 04:21 AM.