Ok, I know when you encrypt something it's very ugly to read.
But what I don't know is - let's say I have one page of 10 kb I want to encrypt:
How big would it be ( because of size and bandwith usage ) when I encrypt it with
1) sha 128
2) sha 256
...
How does the size varies in relation of encryption algorithm used.
Thanks Ahead !
sha and encryption
Moderator: General Moderators
Re: sha and encryption
A couple of issues with your question.Calimero wrote: How does the size varies in relation of encryption algorithm used.
First, sha isn't encryption. Its a hashing function. You give it a variable length input (from 1 byte to billions of bytes), and it always gives a consistent length output.
The output cannot be "decrypted", and it does NOT contain all the information from the input.
Think of it like a fingerprint: While my fingerprint can identify who I am, the fingerprint is NOT me.
The second issue is that there is no sha128. There is sha1 (which is 160 bits), and sha-256 (which is 256 bits). They are commonly expressed/displayed in Hex, which results in a 40 character length for sha1, and 56 for sha-256.
Everyone is a beginner at some point. No need to apologize. Thats what these forums are here for - for all of us to learn.Calimero wrote:ok, sorry - noob in this theme.
(I'm willing to bet that I'm not the most knowledgable person here about encryption)
It might be, or it might not.Calimero wrote: So to ask again - if the encryption (real encryption) is used - is the encrypted material much larger then the original
*Most* types of encryption do indeed end up larger than the source material. However, it is usually a fairly low overhead (5-15% larger).
It can happen that it won't be, for a variety of reasons, including some encryption methods that also do compression.
So, "It depends". Which encryption method, what size input, etc etc.
- Maugrim_The_Reaper
- DevNet Master
- Posts: 2704
- Joined: Tue Nov 02, 2004 5:43 am
- Location: Ireland