techPowerUp! Forums

Go Back   techPowerUp! Forums > Software > Programming & Webmastering

Reply
 
Thread Tools
Old Apr 1, 2010, 03:13 PM   #1
cnr.chada
 
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.
cnr.chada is offline  
Reply With Quote
Old Apr 1, 2010, 03:39 PM   #2
Kreij
Hardcore Monkey Moderator
 
Kreij's Avatar
 
Join Date: Feb 2007
Location: Cheeseland (Wisconsin, USA)
Posts: 12,114 (5.27/day)
Thanks: 591
Thanked 5,492 Times in 2,936 Posts

System Specs

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
Kreij is offline  
Reply With Quote
Old Apr 1, 2010, 03:40 PM   #3
FordGT90Concept
"I go fast!1!11!1!"
 
FordGT90Concept's Avatar
 
Join Date: Oct 2008
Location: IA, USA
Posts: 10,575 (6.28/day)
Thanks: 1,755
Thanked 2,596 Times in 1,960 Posts

System Specs

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(); }
FordGT90Concept is offline  
Crunching for Team TPU
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT. The time now is 06:27 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
no new posts