.NET的32位分组密码 [英] 32 bit block cipher for .NET

查看:51
本文介绍了.NET的32位分组密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要加密32位整数,以便它们由32位整数表示.是否可以使用具有32位块大小的块密码,以便输出为32位?

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?

我当前正在使用DES,但结果是64位整数.我不想将XOR加密用作最后的手段.

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.

推荐答案

Skip32,它基于此处.

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.

出于安全性考虑,通常将64位视为绝对最小块大小.

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

这篇关于.NET的32位分组密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆