java中的密码填充字符串是什么? [英] What are the cipher padding strings in java
问题描述
每个人都在讨论密码中的填充方案,但是需要传递给密码的实际字符串是什么?我不在乎它们是对称的还是非对称的,我只想要一个可能值的列表。
Everyone talks about the padding schemes in ciphers but what are the actual strings one needs to pass in to the cipher? I don't care if they are symmetric or asymmetric, I just want a list of the possible values.
推荐答案
有很多填充类型,PKCS-7,Zero,ISO 10126,ANSI X.923等。
我建议您阅读 padding ,因为你似乎没有完全理解这个概念。
There are many types of padding, PKCS-7, Zero, ISO 10126, ANSI X.923, etc.
I suggest you read up on padding since you seem not to fully understand the concept.
那么你有可能指的是加密盐。
Then there's the possibility you are referring to cryptographic salt.
编辑
每个Java平台的实现都需要支持以下标准密码转换,并在括号中包含密钥:
Edit
Every implementation of the Java platform is required to support the following standard Cipher transformations with the keysizes in parentheses:
- AES / CBC / NoPadding(128)
- AES / CBC / PKCS5Padding(128)
- AES / ECB / NoPadding(128)
- AES / ECB / PKCS5Padding(128)
- DES / CBC / NoPadding(56)
- DES / C. BC / PKCS5Padding(56)
- DES / ECB / NoPadding(56)
- DES / ECB / PKCS5Padding(56)
- DESede / CBC / NoPadding(168)
- DESede / CBC / PKCS5Padding(168)
- DESede / ECB / NoPadding(168 )
- DESede / ECB / PKCS5Padding(168)
- RSA / ECB / PKCS1Padding(1024,2048)
- RSA / ECB / OAEPWithSHA-1AndMGF1Padding(1024,2048)
- RSA / ECB / OAEPWithSHA-256AndMGF1Padding(1024,2048)
- AES/CBC/NoPadding (128)
- AES/CBC/PKCS5Padding (128)
- AES/ECB/NoPadding (128)
- AES/ECB/PKCS5Padding (128)
- DES/CBC/NoPadding (56)
- DES/CBC/PKCS5Padding (56)
- DES/ECB/NoPadding (56)
- DES/ECB/PKCS5Padding (56)
- DESede/CBC/NoPadding (168)
- DESede/CBC/PKCS5Padding (168)
- DESede/ECB/NoPadding (168)
- DESede/ECB/PKCS5Padding (168)
- RSA/ECB/PKCS1Padding (1024, 2048)
- RSA/ECB/OAEPWithSHA-1AndMGF1Padding (1024, 2048)
- RSA/ECB/OAEPWithSHA-256AndMGF1Padding (1024, 2048)
你可以找到一个清单这里。
编辑2
您可以找到Bouncy Castle规范这里。它列出了所有可用的填充方案。
Edit 2
You can find the Bouncy Castle specification here. It lists all available padding schemes.
这篇关于java中的密码填充字符串是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!