mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix comment
This commit is contained in:
@@ -16,7 +16,7 @@ public enum Padding {
|
||||
*/
|
||||
NoPadding,
|
||||
/**
|
||||
* 0补码,既不满block长度时使用0填充
|
||||
* 0补码,即不满block长度时使用0填充
|
||||
*/
|
||||
ZeroPadding,
|
||||
ISO10126Padding,
|
||||
|
@@ -32,7 +32,7 @@ public class Digester implements Serializable {
|
||||
private MessageDigest digest;
|
||||
/** 盐值 */
|
||||
protected byte[] salt;
|
||||
/** 加盐位置,既将盐值字符串放置在数据的index数,默认0 */
|
||||
/** 加盐位置,即将盐值字符串放置在数据的index数,默认0 */
|
||||
protected int saltPosition;
|
||||
/** 散列次数 */
|
||||
protected int digestCount;
|
||||
@@ -120,7 +120,7 @@ public class Digester implements Serializable {
|
||||
* data: 0123456
|
||||
* </pre>
|
||||
*
|
||||
* 则当saltPosition = 2时,盐位于data的1和2中间,既第二个空隙,既:
|
||||
* 则当saltPosition = 2时,盐位于data的1和2中间,即第二个空隙,即:
|
||||
*
|
||||
* <pre>
|
||||
* data: 01[salt]23456
|
||||
|
@@ -53,7 +53,7 @@ public class MD5 extends Digester {
|
||||
* 构造
|
||||
*
|
||||
* @param salt 盐值
|
||||
* @param saltPosition 加盐位置,既将盐值字符串放置在数据的index数,默认0
|
||||
* @param saltPosition 加盐位置,即将盐值字符串放置在数据的index数,默认0
|
||||
* @param digestCount 摘要次数,当此值小于等于1,默认为1。
|
||||
*/
|
||||
public MD5(byte[] salt, int saltPosition, int digestCount) {
|
||||
|
@@ -51,7 +51,7 @@ public class SM3 extends Digester {
|
||||
* 构造
|
||||
*
|
||||
* @param salt 盐值
|
||||
* @param saltPosition 加盐位置,既将盐值字符串放置在数据的index数,默认0
|
||||
* @param saltPosition 加盐位置,即将盐值字符串放置在数据的index数,默认0
|
||||
* @param digestCount 摘要次数,当此值小于等于1,默认为1。
|
||||
*/
|
||||
public SM3(byte[] salt, int saltPosition, int digestCount) {
|
||||
|
@@ -134,7 +134,7 @@ public class SymmetricCrypto implements Serializable {
|
||||
*
|
||||
* @param algorithm 算法
|
||||
* @param key 密钥,如果为<code>null</code>自动生成一个key
|
||||
* @return {@link SymmetricCrypto}的子对象,既子对象自身
|
||||
* @return {@link SymmetricCrypto}的子对象,即子对象自身
|
||||
*/
|
||||
public SymmetricCrypto init(String algorithm, SecretKey key) {
|
||||
Assert.notBlank(algorithm, "'algorithm' must be not blank !");
|
||||
|
Reference in New Issue
Block a user