JCEKS keyStore在JavaTM加密扩展中使用的加密? [英] encryption used by JCEKS keyStore in JavaTM Cryptography Extension..?

查看:167
本文介绍了JCEKS keyStore在JavaTM加密扩展中使用的加密?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

JCEKS 密钥存储所使用的算法以及密钥的大小。

i找到使用它的东西 Triple DES

In JCEKS key Store which algorithm used and what is the size of key .
i find something that its use Triple DES

但是什么是密钥大小?

谢谢


Thank's

推荐答案

目前,每个 PrivateKey SecretKey JCEKS密钥库中的条目使用PKCS#5填充的CBC模式以3键三重DES进行加密。这具有112位的有效加密强度,尽管密钥是168位加上24位奇偶校验位,总共192位。

Currently, each PrivateKey and SecretKey entry in a JCEKS key store is encrypted with 3-key triple DES in CBC mode with PKCS #5 padding. This has an effective cryptographic strength of 112 bits, although the key is 168 bits plus 24 parity bits for a total of 192 bits.

此键(和初始化向量)是使用专有的基于MD5的算法从密码派生的。通常,从密钥导出初始化向量将失败的目的,但每个条目也具有唯一的盐用于密钥推导。这意味着导出的键和初始化向量对于每个条目是唯一的。

This key (and the initialization vector) is derived from a password using a proprietary MD5-based algorithm. Normally, deriving the initialization vector from the key would defeat the purpose, but each entry also has a unique salt for key derivation. This means that the derived key and initialization vector are unique to to each entry.

您可以学习使用密码密码本身在源代码中。

You can study the use of the cipher and the cipher itself in the source code.

这篇关于JCEKS keyStore在JavaTM加密扩展中使用的加密?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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