首页 | 本学科首页   官方微博 | 高级检索  
     

关于加密数据的填充方式的研究
引用本文:樊志英. 关于加密数据的填充方式的研究[J]. 现代电子技术, 2014, 0(22): 20-23
作者姓名:樊志英
作者单位:公安部第一研究所,北京,100048
摘    要:针对不同平台环境下加解密的互通问题,结合Java平台下密码扩展服务Sun JCE提供的加密类函数Cipher,对加密算法中使用到的明文填充方式进行阐述。详细介绍加密时明文数据的常用填充规则,并比较数据填充前后的区别,深入分析Sun JCE支持的填充方式与常用填充规则的对应性,并对RSA算法的加解密互通进行了测试。加密数据填充方式的研究,为Java平台与其他平台之间加解密参数的约定提供了依据。双方只有遵循相同的填充和去填充规则,才能实现有效的解密。

关 键 词:Sun JCE  Cipher  加密模式  填充

Study on mode and padding in encryption algorithm
FAN Zhiying. Study on mode and padding in encryption algorithm[J]. Modern Electronic Technique, 2014, 0(22): 20-23
Authors:FAN Zhiying
Affiliation:FAN Zhiying (The First Research Institute of Ministry of Public Security of P.R.C, Beijing 100048, China)
Abstract:Aiming at the interoperability of encryption and decryption in different platform environment,the two important parameters which are encryption mode and padding method used in encryption algorithm are elaborated in combination with en-cryption function Cipher provided by the encryption extended service on the Java platform. The rules in the encryption mode are discussed in detail,and their advantages,disadvantages and application scope are compared. The difference between the plain-text data before and after padding is analyzed in depth,which can narrow the range of encryption and decryption parameters for Java and other platforms,and can effectively solve the interaction problem between encryption and decryption.
Keywords:SunJCE  Cipher  encryption mode  padding
本文献已被 CNKI 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号