B C D E G H K L M N P R S T

B

blank(byte[]) - Static method in class net.sourceforge.lightcrypto.Clean
zero out the passed in byte array
blank(StringBuffer) - Static method in class net.sourceforge.lightcrypto.Clean
zero out the passed in StringBuffer

C

Clean - class net.sourceforge.lightcrypto.Clean.
Utitlity to clean byte arrays & stringbuffers
Clean() - Constructor for class net.sourceforge.lightcrypto.Clean
 
clearText() - Method in class net.sourceforge.lightcrypto.SafeObject
Wipe text from memory
Crypt - class net.sourceforge.lightcrypto.Crypt.
Encryption & decryption routines for use with the BouncyCastle lightweight API
Crypt() - Constructor for class net.sourceforge.lightcrypto.Crypt
 
CryptoException - exception net.sourceforge.lightcrypto.CryptoException.
This exception is thrown when encrypting/decrypting string or files went wrong
CryptoException() - Constructor for class net.sourceforge.lightcrypto.CryptoException
base constructor.
CryptoException(String) - Constructor for class net.sourceforge.lightcrypto.CryptoException
create a CryptoException with the given message.
CryptTest - class net.sourceforge.lightcrypto.test.CryptTest.
A collection of encryption tests
CryptTest() - Constructor for class net.sourceforge.lightcrypto.test.CryptTest
 

D

decrypt(InputStream, DataOutputStream, SafeObject, int) - Static method in class net.sourceforge.lightcrypto.Stream
Decrypts a ciphered inputstream with an RC4 stream cipher
decrypt(InputStream, DataOutputStream, SafeObject, int) - Static method in class net.sourceforge.lightcrypto.Crypt
Decrypts a ciphered inputstream with a symmetric key (AES light engine, CBC mode, PKCS7 padding)
decrypt(InputStream, DataOutputStream, StringBuffer, int) - Static method in class net.sourceforge.lightcrypto.PBECrypt
Decrypts a ciphered inputstream with PBE
decrypt(StringBuffer, SafeObject) - Static method in class net.sourceforge.lightcrypto.Crypt
Decrypts a ciphered BASE64 string with a symmetric key (AES light engine, CBC mode, PKCS7 padding)
decrypt(StringBuffer, StringBuffer) - Static method in class net.sourceforge.lightcrypto.PBECrypt
Decrypts a ciphered BASE64 string with PBE
decrypt(String, String) - Static method in class net.sourceforge.lightcrypto.Hsqldb
Decrypts a ciphered BASE64 string with a symmetric key (AES light engine, CBC mode, PKCS7 padding)
decryptFile(String, String, SafeObject) - Static method in class net.sourceforge.lightcrypto.Crypt
Decrypts a ciphered file with a symmetric key (AES light engine, CBC mode, PKCS7 padding)
decryptFile(String, String, StringBuffer) - Static method in class net.sourceforge.lightcrypto.PBECrypt
Decrypts a ciphered file with PBE
digest(InputStream, String, int) - Static method in class net.sourceforge.lightcrypto.Digesters
Creates a digest from an inputstream
digest(StringBuffer, String) - Static method in class net.sourceforge.lightcrypto.Digesters
Creates a digest from a stringbuffer
digest(String, String) - Static method in class net.sourceforge.lightcrypto.Hsqldb
Creates a digest from a string
Digesters - class net.sourceforge.lightcrypto.Digesters.
digest and hash routines for use with the BouncyCastle lightweight API
Digesters() - Constructor for class net.sourceforge.lightcrypto.Digesters
 
digestFromFile(String, String) - Static method in class net.sourceforge.lightcrypto.Digesters
Creates a digest from a file
DigestTest - class net.sourceforge.lightcrypto.test.DigestTest.
A collection of digest tests
DigestTest() - Constructor for class net.sourceforge.lightcrypto.test.DigestTest
 

E

encrypt(InputStream, DataOutputStream, SafeObject, int) - Static method in class net.sourceforge.lightcrypto.Stream
Encrypts any inputstream with an RC4 stream cipher and returns the ciphered inputstream as a DataOutputStream
encrypt(InputStream, DataOutputStream, SafeObject, StringBuffer, int) - Static method in class net.sourceforge.lightcrypto.Crypt
Encrypts any inputstream with a symmetric key (AES light engine, CBC mode, PKCS7 padding) and returns the ciphered inputstream as a ByteArrayOutputStream
encrypt(InputStream, DataOutputStream, StringBuffer, StringBuffer, int) - Static method in class net.sourceforge.lightcrypto.PBECrypt
Encrypts any inputstream with PBE and returns the ciphered inputstream as a DataOutputStream.
encrypt(StringBuffer, SafeObject) - Static method in class net.sourceforge.lightcrypto.Crypt
Encrypts a string with a symmetric key (AES light engine, CBC mode, PKCS7 padding) and returns the ciphered text in BASE64 format.
encrypt(StringBuffer, SafeObject, StringBuffer) - Static method in class net.sourceforge.lightcrypto.Crypt
Encrypts a string with a symmetric key (AES light engine, CBC mode, PKCS7 padding) and returns the ciphered text in BASE64 format.
encrypt(StringBuffer, StringBuffer) - Static method in class net.sourceforge.lightcrypto.PBECrypt
Encrypts a string with PBE and returns the ciphered text in BASE64 format.
encrypt(StringBuffer, StringBuffer, StringBuffer) - Static method in class net.sourceforge.lightcrypto.PBECrypt
Encrypts a string with PBE and returns the ciphered text in BASE64 format.
encrypt(String, String) - Static method in class net.sourceforge.lightcrypto.Hsqldb
Encrypts a string with a symmetric key (AES light engine, CBC mode, PKCS7 padding) and returns the ciphered text in BASE64 format.
encryptFile(String, String, SafeObject) - Static method in class net.sourceforge.lightcrypto.Crypt
Encrypts a file with a symmetric key (AES light engine, CBC mode, PKCS7 padding) and creates a new file with the result.
encryptFile(String, String, SafeObject, StringBuffer) - Static method in class net.sourceforge.lightcrypto.Crypt
Encrypts a file with a symmetric key (AES light engine, CBC mode, PKCS7 padding) and creates a new file with the result.
encryptFile(String, String, StringBuffer) - Static method in class net.sourceforge.lightcrypto.PBECrypt
Encrypts a file with PBE and creates a new file with the result.
encryptFile(String, String, StringBuffer, StringBuffer) - Static method in class net.sourceforge.lightcrypto.PBECrypt
Encrypts a file with PBE and creates a new file with the result.

G

generatekey(String, StringBuffer) - Static method in class net.sourceforge.lightcrypto.Key
Generates a symmetric key, wraps it up and stores it in a file
generatekey(String, StringBuffer, StringBuffer) - Static method in class net.sourceforge.lightcrypto.Key
Generates a symmetric key, wraps it up and stores it in a file
getBase64() - Method in class net.sourceforge.lightcrypto.SafeObject
Retrieve text as a BASE64 string
getBytes() - Method in class net.sourceforge.lightcrypto.SafeObject
Retrieve bytes
getLength() - Method in class net.sourceforge.lightcrypto.SafeObject
Get text length
getText() - Method in class net.sourceforge.lightcrypto.SafeObject
Retrieve text

H

hmac(String) - Static method in class net.sourceforge.lightcrypto.Hsqldb
Create HMAC (Hash Message Authentication Code)
HMacs - class net.sourceforge.lightcrypto.HMacs.
Create HMAC (Hash Message Authentication Code) from text and files
HMacs() - Constructor for class net.sourceforge.lightcrypto.HMacs
 
HMacTest - class net.sourceforge.lightcrypto.test.HMacTest.
A collection of HMAC tests
HMacTest() - Constructor for class net.sourceforge.lightcrypto.test.HMacTest
 
Hsqldb - class net.sourceforge.lightcrypto.Hsqldb.
High-level methods for use with HSQLDB database engine (http://hsqldb.sourceforge.net) These methods encapsulate functionality (use String instead of StringBuffer) so it can be used as a function inside SQL statements.
Hsqldb() - Constructor for class net.sourceforge.lightcrypto.Hsqldb
 
HsqldbTest - class net.sourceforge.lightcrypto.test.HsqldbTest.
A collection of encryption tests for HSQLDB (http://hsqldb.sourceforge.net)
HsqldbTest() - Constructor for class net.sourceforge.lightcrypto.test.HsqldbTest
 

K

Key - class net.sourceforge.lightcrypto.Key.
Class to generate and read symmetric (shared) keys with the Bouncycastle lightweight API.
Key() - Constructor for class net.sourceforge.lightcrypto.Key
Constructor
KeyException - exception net.sourceforge.lightcrypto.KeyException.
This exception is thrown when key generation or loading went wrong
KeyException() - Constructor for class net.sourceforge.lightcrypto.KeyException
base constructor.
KeyException(String) - Constructor for class net.sourceforge.lightcrypto.KeyException
create a KeyException with the given message.
KeyTest - class net.sourceforge.lightcrypto.test.KeyTest.
A collection of key tests
KeyTest() - Constructor for class net.sourceforge.lightcrypto.test.KeyTest
 

L

loadkey(String, StringBuffer) - Static method in class net.sourceforge.lightcrypto.Hsqldb
Load a symmetric key from the file, unwrap it and return the key as a Base64 string
loadkey(String, StringBuffer) - Static method in class net.sourceforge.lightcrypto.Key
Load a symmetric key from the file, unwrap it and return the key bytes

M

mac(InputStream, int) - Static method in class net.sourceforge.lightcrypto.HMacs
Creates an HMAC from an inputstream
mac(InputStream, SafeObject, StringBuffer, int) - Static method in class net.sourceforge.lightcrypto.Macs
Creates a MAC from an inputstream
mac(StringBuffer) - Static method in class net.sourceforge.lightcrypto.HMacs
Creates an HMAC from a stringbuffer
mac(StringBuffer, SafeObject) - Static method in class net.sourceforge.lightcrypto.Macs
Creates a MAC from a stringbuffer
mac(StringBuffer, SafeObject, StringBuffer) - Static method in class net.sourceforge.lightcrypto.Macs
Creates a MAC from a stringbuffer
mac(String, String) - Static method in class net.sourceforge.lightcrypto.Hsqldb
Create MAC (Message Authentication Code)
macEquals(InputStream, StringBuffer, SafeObject, int) - Static method in class net.sourceforge.lightcrypto.Macs
Check if a MAC is valid
macEquals(StringBuffer, StringBuffer, SafeObject) - Static method in class net.sourceforge.lightcrypto.Macs
Check if a MAC is valid
macEqualsFile(String, StringBuffer, SafeObject) - Static method in class net.sourceforge.lightcrypto.Macs
Check if a file MAC is valid
macFromFile(String) - Static method in class net.sourceforge.lightcrypto.HMacs
Creates an HMAC from a file
macFromFile(String, SafeObject) - Static method in class net.sourceforge.lightcrypto.Macs
Creates a MAC from a file
macFromFile(String, SafeObject, StringBuffer) - Static method in class net.sourceforge.lightcrypto.Macs
Creates a MAC from a file
Macs - class net.sourceforge.lightcrypto.Macs.
Create CBC Block Cipher MAC (Message Authentication Code) with IV from text and files
Macs() - Constructor for class net.sourceforge.lightcrypto.Macs
 
MacTest - class net.sourceforge.lightcrypto.test.MacTest.
A collection of HMAC tests
MacTest() - Constructor for class net.sourceforge.lightcrypto.test.MacTest
 
main(String[]) - Static method in class net.sourceforge.lightcrypto.test.RunTest
Main method to run the tests from the command line
main(String[]) - Static method in class net.sourceforge.lightcrypto.test.Run
 

N

net.sourceforge.lightcrypto - package net.sourceforge.lightcrypto
 
net.sourceforge.lightcrypto.test - package net.sourceforge.lightcrypto.test
 

P

PBECrypt - class net.sourceforge.lightcrypto.PBECrypt.
PBE (Password-based) encryption & decryption routines for use with the BouncyCastle lightweight API
PBECrypt() - Constructor for class net.sourceforge.lightcrypto.PBECrypt
 
PBEDecrypt(String, String) - Static method in class net.sourceforge.lightcrypto.Hsqldb
Decrypts a ciphered BASE64 string with PBE
PBEEncrypt(String, String) - Static method in class net.sourceforge.lightcrypto.Hsqldb
Encrypts a string with PBE and returns the ciphered text in BASE64 format.
PBETest - class net.sourceforge.lightcrypto.test.PBETest.
A collection of PBE encryption tests
PBETest() - Constructor for class net.sourceforge.lightcrypto.test.PBETest
 

R

Run - class net.sourceforge.lightcrypto.test.Run.
Created by IntelliJ IDEA.
Run() - Constructor for class net.sourceforge.lightcrypto.test.Run
 
RunTest - class net.sourceforge.lightcrypto.test.RunTest.
A collection of tests for net.sourceforge.lightcrypto package
RunTest() - Constructor for class net.sourceforge.lightcrypto.test.RunTest
 

S

SafeObject - class net.sourceforge.lightcrypto.SafeObject.
Object containing text that can be removed from memory by calling clearText() method
SafeObject() - Constructor for class net.sourceforge.lightcrypto.SafeObject
 
setSecKeylength(int) - Method in class net.sourceforge.lightcrypto.Key
Sets the AES keybits (default = 256)
setSecKeystoreCount(int) - Method in class net.sourceforge.lightcrypto.Key
Sets the PBE iteration count (default = 100)
setSecKeystoreKeylength(int) - Static method in class net.sourceforge.lightcrypto.Key
Sets the PBE key length (default = 256)
setText(byte[]) - Method in class net.sourceforge.lightcrypto.SafeObject
Set text
setUp() - Method in class net.sourceforge.lightcrypto.test.CryptTest
setup test
setUp() - Method in class net.sourceforge.lightcrypto.test.MacTest
setup test
setUp() - Method in class net.sourceforge.lightcrypto.test.HsqldbTest
setup test (create database)
setUp() - Method in class net.sourceforge.lightcrypto.test.StreamTest
setup test
setUp() - Method in class net.sourceforge.lightcrypto.test.DigestTest
setup test
setUp() - Method in class net.sourceforge.lightcrypto.test.HMacTest
setup test
setUp() - Method in class net.sourceforge.lightcrypto.test.PBETest
setup test
Stream - class net.sourceforge.lightcrypto.Stream.
Streamcipher routines for use with the BouncyCastle lightweight API
Stream() - Constructor for class net.sourceforge.lightcrypto.Stream
 
StreamTest - class net.sourceforge.lightcrypto.test.StreamTest.
A collection of stream cipher tests
StreamTest() - Constructor for class net.sourceforge.lightcrypto.test.StreamTest
 
suite() - Static method in class net.sourceforge.lightcrypto.test.RunTest
Returns a test suite to the JUnit test runner.

T

tearDown() - Method in class net.sourceforge.lightcrypto.test.HsqldbTest
runs a the end of the tests (close database)
TEMPFOLDER - Static variable in class net.sourceforge.lightcrypto.test.RunTest
 
testDigest() - Method in class net.sourceforge.lightcrypto.test.HsqldbTest
test digest
testDigest() - Method in class net.sourceforge.lightcrypto.test.DigestTest
test digest
testEncryption() - Method in class net.sourceforge.lightcrypto.test.CryptTest
test encryption
testEncryption() - Method in class net.sourceforge.lightcrypto.test.HsqldbTest
test encryption
testEncryption() - Method in class net.sourceforge.lightcrypto.test.PBETest
test encryption
testFileDigest() - Method in class net.sourceforge.lightcrypto.test.DigestTest
test file digest
testFileEncryption() - Method in class net.sourceforge.lightcrypto.test.CryptTest
test file encryption
testFileEncryption() - Method in class net.sourceforge.lightcrypto.test.MacTest
test file encryption
testFileEncryption() - Method in class net.sourceforge.lightcrypto.test.PBETest
test file encryption
testFileHmac() - Method in class net.sourceforge.lightcrypto.test.HMacTest
test file Hmac
testGenerateKey() - Method in class net.sourceforge.lightcrypto.test.KeyTest
test key generation
testHmac() - Method in class net.sourceforge.lightcrypto.test.HMacTest
test HMAC
testHMAC() - Method in class net.sourceforge.lightcrypto.test.HsqldbTest
test HMAC
testLoadKey() - Method in class net.sourceforge.lightcrypto.test.KeyTest
test key loading
testMac() - Method in class net.sourceforge.lightcrypto.test.MacTest
test MAC
testMAC() - Method in class net.sourceforge.lightcrypto.test.HsqldbTest
test MAC
testPBEEncryption() - Method in class net.sourceforge.lightcrypto.test.HsqldbTest
test encryption
testStream() - Method in class net.sourceforge.lightcrypto.test.StreamTest
test file encryption

B C D E G H K L M N P R S T