![]() |
|
|
#1 |
|
Join Date: Apr 2010
Posts: 1 (0.00/day)
Thanks: 0
Thanked 0 Times in 0 Posts
|
Encrypt 24 byte array into 8 byte array in c#
Hi,
I have an 24 byte array and would like to convert into 8 byte hash code in c# . I would really appreciate for your help Thanks, chinna Last edited by cnr.chada; Apr 1, 2010 at 04:50 PM. |
|
|
|
|
|
#2 |
|
Hardcore Monkey Moderator
Join Date: Feb 2007
Location: Cheeseland (Wisconsin, USA)
Posts: 12,114 (5.27/day)
Thanks: 591
Thanked 5,492 Times in 2,936 Posts
|
I believe the original DES encryption encrypts into 8 byte blocks. I've never use it though.
It's rather slow and insecure.
__________________
Cloud (noun, singular): A dynamic arrangement of multiple potential single points of failure, with a user at one end and their data at the other. Get more tech news on a wide variety of topics at NextPowerUp
|
|
|
|
|
|
#3 |
|
"I go fast!1!11!1!"
Join Date: Oct 2008
Location: IA, USA
Posts: 10,575 (6.28/day)
Thanks: 1,755
Thanked 2,596 Times in 1,960 Posts
|
SHA1 and MD5 are hashes. They are lossy. TripleDES and Rijndael (Rijndael is more secure) encrypt data. To make an 24 byte array only 8 bytes without losing any data, you need compression algorithms like the ZIP deflate method. How many bytes you get out of compression algorithms depends on how dense the input 24 byte arrays are.
So basically... "encrypt" = TripleDES/Rijndael "24 byte array ... into 8 byte array" = compression/deflate algorithms
__________________
Golden Rule of Programming: Never assume. try { SteamDownload(); } catch (Steamception ex) { RageQuit(); } |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| C++ 1D Array Question | dcf-joe | Programming & Webmastering | 5 | Jul 10, 2009 06:02 AM |
| Charging by the Byte to Curb Internet Traffic | Polaris573 | News | 143 | Jun 20, 2008 12:49 PM |
| creating RAID-1 array | smig | Storage | 18 | May 6, 2008 06:25 AM |
| Pleeaaassseee help Giga-byte P35C-DS3R won't boot | MiST91 | Motherboards & Memory | 22 | Dec 31, 2007 11:00 PM |
| RAID Array | disarmedmeteor | General Hardware | 9 | Sep 25, 2006 07:31 AM |