public class KdbHeader extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
FLAG_ARCFOUR |
static int |
FLAG_RIJNDAEL |
static int |
FLAG_SHA2 |
static int |
FLAG_TWOFISH |
| Constructor and Description |
|---|
KdbHeader() |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
createDecryptedInputStream(byte[] key,
InputStream inputStream)
Create a decrypted stream from an encrypted one
|
byte[] |
getContentHash() |
byte[] |
getEncryptionIv() |
long |
getEntryCount() |
int |
getFlags() |
long |
getGroupCount() |
byte[] |
getMasterSeed() |
long |
getTransformRounds() |
byte[] |
getTransformSeed() |
int |
getVersion() |
void |
setContentHash(byte[] contentHash) |
void |
setEncryptionIv(byte[] encryptionIv) |
void |
setEntryCount(long entryCount) |
void |
setFlags(int flags) |
void |
setGroupCount(long groupCount) |
void |
setMasterSeed(byte[] masterSeed) |
void |
setTransformRounds(long transformRounds) |
void |
setTransformSeed(byte[] transformSeed) |
void |
setVersion(int version) |
public static final int FLAG_SHA2
public static final int FLAG_RIJNDAEL
public static final int FLAG_ARCFOUR
public static final int FLAG_TWOFISH
public InputStream createDecryptedInputStream(byte[] key, InputStream inputStream)
key - keyinputStream - an encrypted streampublic int getFlags()
public void setFlags(int flags)
public int getVersion()
public void setVersion(int version)
public byte[] getMasterSeed()
public void setMasterSeed(byte[] masterSeed)
public byte[] getEncryptionIv()
public void setEncryptionIv(byte[] encryptionIv)
public long getGroupCount()
public void setGroupCount(long groupCount)
public long getEntryCount()
public void setEntryCount(long entryCount)
public byte[] getContentHash()
public void setContentHash(byte[] contentHash)
public byte[] getTransformSeed()
public void setTransformSeed(byte[] transformSeed)
public long getTransformRounds()
public void setTransformRounds(long transformRounds)
Copyright © 2023. All rights reserved.