Thread: encryption algorithm

  1. #1
    essence of digital xddxogm3's Avatar
    Join Date
    Sep 2003
    Posts
    589

    encryption algorithm

    I'm trying to figure out how shyfile works.
    they say on there website
    http://www.shyfile.net/page2.html#5
    that they divide a bit into a nibble.
    how would i do this in c++?
    does anyone know?
    Last edited by xviddivxoggmp3; 05-16-2005 at 10:46 PM.
    "Hence to fight and conquer in all your battles is not supreme excellence;
    supreme excellence consists in breaking the enemy's resistance without fighting."
    Art of War Sun Tzu

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Take small bytes.

    Thank you, I'll be here all week.

    Quzah.
    Hope is the first step on the road to disappointment.

  3. #3
    Senior Member joshdick's Avatar
    Join Date
    Nov 2002
    Location
    Phildelphia, PA
    Posts
    1,146
    A nibble is 4 bits. A hexidecimal digit is 4 bits. You can single out a hexidecimal digit by using the binary AND operator. Here's an example:
    Code:
      0xDEADBEEF
    & 0x000F0000
    ----------------
      0x000D0000
    From the number 0xDEADBEEF, the 16^4 hexadecimal digit was singled out.
    FAQ

    "The computer programmer is a creator of universes for which he alone is responsible. Universes of virtually unlimited complexity can be created in the form of computer programs." -- Joseph Weizenbaum.

    "If you cannot grok the overall structure of a program while taking a shower, you are not ready to code it." -- Richard Pattis.

  4. #4
    essence of digital xddxogm3's Avatar
    Join Date
    Sep 2003
    Posts
    589
    if that is the case, then would the files after being incrypted using this method increase in size?
    "Hence to fight and conquer in all your battles is not supreme excellence;
    supreme excellence consists in breaking the enemy's resistance without fighting."
    Art of War Sun Tzu

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. RSA Encryption Algorithm help
    By gL_nEwB in forum C++ Programming
    Replies: 2
    Last Post: 04-27-2008, 04:14 AM
  2. My Encryption Algorithm...
    By Junior89 in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 07-26-2007, 03:53 PM
  3. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM
  4. abt encryption algorithm
    By purIn in forum C Programming
    Replies: 9
    Last Post: 12-22-2003, 10:16 PM
  5. What's wrong with my Stream Cipher Encryption?
    By Davros in forum C++ Programming
    Replies: 3
    Last Post: 04-18-2002, 09:51 PM