📄 pbeparametersgenerator.java
字号:
// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi
// Source File Name: PBEParametersGenerator.java
package jit.crypto;
// Referenced classes of package jit.crypto:
// CipherParameters
public abstract class PBEParametersGenerator
{
protected byte password[];
protected byte salt[];
protected int iterationCount;
protected PBEParametersGenerator()
{
}
public void init(byte password[], byte salt[], int iterationCount)
{
this.password = password;
this.salt = salt;
this.iterationCount = iterationCount;
}
public byte[] getPassword()
{
return password;
}
public byte[] getSalt()
{
return salt;
}
public int getIterationCount()
{
return iterationCount;
}
public abstract CipherParameters generateDerivedParameters(int i);
public abstract CipherParameters generateDerivedParameters(int i, int j);
public abstract CipherParameters generateDerivedMacParameters(int i);
public static byte[] PKCS5PasswordToBytes(char password[])
{
byte bytes[] = new byte[password.length];
for(int i = 0; i != bytes.length; i++)
bytes[i] = (byte)password[i];
return bytes;
}
public static byte[] PKCS12PasswordToBytes(char password[])
{
if(password.length > 0)
{
byte bytes[] = new byte[(password.length + 1) * 2];
for(int i = 0; i != password.length; i++)
{
bytes[i * 2] = (byte)(password[i] >>> 8);
bytes[i * 2 + 1] = (byte)password[i];
}
return bytes;
} else
{
return new byte[0];
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -