Thread: Encryption Algorithms

  1. #1
    Registered User bljonk's Avatar
    Join Date
    Oct 2001

    Encryption Algorithms

    I have been trying to create a new encrytion Algorithn based on the Pascal triangle numbers to encrypt my data and I have this problem in accessing and using my public keys in the 99th(it has 999 lines)line of the triangle in the array:

    int pascalbox[99][box]={1,99,...,99,1}

    it's part of the struct:

    struct keys {
    pascalkey(int y, int x);
    pascaldel(int y, int [][x]);
    }public, private, universal;

    they create a circunference if graphed with the rad[f|l]() function(defined by me)

    Any Math opinion or other is accepted, thanx!

    P.S: it peeks any of the number in the tringle and computes a bitwise operation with it that is defined by the last key it encrypted and XOR the passWd on it.
    Ünicode¬>world = 10.0£

  2. #2
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    cant really understand what you are after but I can point out a problem with the code you posted.
    In straight c structures cannot have member functions. That makes your code c++. Now in c++ private and public are both keywords so you cannot have them as variable names.
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :-

  3. #3
    Registered User bljonk's Avatar
    Join Date
    Oct 2001

    I will chang~

    I thin~ it will be better if a chnge the code to C++ and use classes

  4. #4
    Confused Magos's Avatar
    Join Date
    Sep 2001

    Huh, wha?

    Did you write that post in a hurry or what?

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 16
    Last Post: 11-23-2007, 01:48 PM
  2. Encryption Algorithms
    By face_master in forum C++ Programming
    Replies: 15
    Last Post: 06-18-2003, 01:28 PM
  3. What's wrong with my Stream Cipher Encryption?
    By Davros in forum C++ Programming
    Replies: 3
    Last Post: 04-18-2002, 09:51 PM
  4. relative strength of encryption algorithms (blowfish, des, rinjdael...)
    By duck-billed platypus in forum A Brief History of
    Replies: 3
    Last Post: 12-30-2001, 04:20 PM
  5. File Encryption & Read/Write in Binary Mode
    By kuphryn in forum C++ Programming
    Replies: 5
    Last Post: 11-30-2001, 06:45 PM