• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

Encrypt 24 byte array into 8 byte array in c#

cnr.chada

New Member
Joined
Apr 1, 2010
Messages
1 (0.00/day)
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:

Kreij

Senior Monkey Moderator
Joined
Feb 6, 2007
Messages
13,817 (2.20/day)
Location
Cheeseland (Wisconsin, USA)
I believe the original DES encryption encrypts into 8 byte blocks. I've never use it though.
It's rather slow and insecure.
 

FordGT90Concept

"I go fast!1!11!1!"
Joined
Oct 13, 2008
Messages
26,259 (4.63/day)
Location
IA, USA
System Name BY-2021
Processor AMD Ryzen 7 5800X (65w eco profile)
Motherboard MSI B550 Gaming Plus
Cooling Scythe Mugen (rev 5)
Memory 2 x Kingston HyperX DDR4-3200 32 GiB
Video Card(s) AMD Radeon RX 7900 XT
Storage Samsung 980 Pro, Seagate Exos X20 TB 7200 RPM
Display(s) Nixeus NX-EDG274K (3840x2160@144 DP) + Samsung SyncMaster 906BW (1440x900@60 HDMI-DVI)
Case Coolermaster HAF 932 w/ USB 3.0 5.25" bay + USB 3.2 (A+C) 3.5" bay
Audio Device(s) Realtek ALC1150, Micca OriGen+
Power Supply Enermax Platimax 850w
Mouse Nixeus REVEL-X
Keyboard Tesoro Excalibur
Software Windows 10 Home 64-bit
Benchmark Scores Faster than the tortoise; slower than the hare.
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
 
Top