Jump to content
Xtreme .Net Talk

Recommended Posts

Posted (edited)

Hey guys, I'm curious as to what encryption programs mean when they say they use '512 bit encryption'/'256 bit encryption'. Are they just meaning the size of the encryption key*8?

 

If so, then surely the 'x-bit encryption' level is just dependent on the size of the key? Somebody please elaborate on this.

Edited by CryoEnix
Chaos is merely logic beyond human comprehension
Posted
x-bit just means that x is the size of the key. So 128 bit encryption uses a key that's 128 bits.

 

Hmm, so programs that boast 512 bit encryption just have a key 64 characters long - interesting, as that would make my encryption program 50678051688 bits in power.... I take it that's good, then?

Chaos is merely logic beyond human comprehension
Posted
You can even HAVE a variable 6.3 billion characters long?

 

And there's probably more to it than that, but I don't know what I'm talking about.

 

Yes, but not in one string. If you tried then VB would kick and scream like a kid with ADD. By using several different keys set at different lengths, the lowest common denominator for the key(s) length equals 50678051688 bits, or 6,334,756,461 bytes in length. Thus, this would effectively be the length of the overall key.

Chaos is merely logic beyond human comprehension
Posted (edited)
I mean' date=' how would you run this program, something that's 6.3 billion bytes is 6.3 gigabytes. That's a lot of memory.[/quote']

 

Sorry, I might not have explained correctly. The encryption algorithm uses three different keys of different lengths, so in essence it should only take about 96 KB of memory at the most (assuming that all strings take up 32,767 bytes of RAM). These three keys work together on the particular piece of data to encrypt/decrypt it, and due to the fact that the lowest common denominator for the length of the keys works out at a 'virtual' key of 6.3 billion characters. It just isn't stored in the memory in a conventional sense.

 

Think of a files hash code. It's unique for every file, yet it's tiny compared to the actual file in question. (I think this analogy is appropriate, at least...)

Edited by CryoEnix
Chaos is merely logic beyond human comprehension
Posted
You are aware that .NET has a very powerful encryption library with all the industry standard methods' date=' right?[/quote']

 

To be honest, I wasn't. But I needed to make my algorithm uniqe, so this is how I did it. The actual algorithm is coded in Java for speed, I just posted here because it's the only decent programming forum I know :)

Chaos is merely logic beyond human comprehension
  • Administrators
Posted

When it comes to encryption unique is not always best - tried and tested routines are often far more secure than self-coded solutions. Also there is probably no real speed advantage in using Java over .Net.

 

http://sunsite.nstu.nsk.su/sunworldonline/swol-03-1997/swol-03-encrypt.html gives a good overview of terminology including key lengths.

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...