Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

32 bit block cipher for .NET

Tags:

c#

encryption

I need to encrypt 32 bit integers so they are represented by 32 bit integers. Is it possible to have a block cipher with 32 bit block size so the output is 32 bits?

I am currently using DES but the result is a 64 bit integer. I don't want to use XOR encryption as a last resort.

like image 329
Karim Avatar asked Dec 02 '22 06:12

Karim


1 Answers

Skip32, which is a based on the Skipjack algorithm, is the only 32-bit block cipher I am aware of: there is purportedly a Java implementation here.

For security, 64-bits is generally considered an absolute minimum block size.

like image 84
President James K. Polk Avatar answered Dec 18 '22 06:12

President James K. Polk