Index
All Classes|All Packages
A
- AESEncrypter - Class in dev.netcode.security.encryption
-
This utility class can be used to encrypt and decrypt data using the AES encryption algorithm.
- AESEncrypter() - Constructor for class dev.netcode.security.encryption.AESEncrypter
B
- Base58 - Class in dev.netcode.security.encryption
-
Base58 is similar to Base64 but uses only 58 different characters to encode the message.
- Base58() - Constructor for class dev.netcode.security.encryption.Base58
- BCrypt - Class in dev.netcode.security.encryption
-
BCrypt implements OpenBSD-style Blowfish password hashing using the scheme described in "A Future-Adaptable Password Scheme" by Niels Provos and David Mazieres.
- BCrypt() - Constructor for class dev.netcode.security.encryption.BCrypt
C
- checkpw(String, String) - Static method in class dev.netcode.security.encryption.BCrypt
-
Check that a plaintext password matches a previously hashed one
- crypt_raw(byte[], byte[], int, int[]) - Method in class dev.netcode.security.encryption.BCrypt
-
Perform the central password hashing step in the bcrypt scheme
D
- decode(String) - Static method in class dev.netcode.security.encryption.Base58
-
Decodes a Base58 encoded input to byte array
- decrypt(byte[], PrivateKey) - Static method in class dev.netcode.security.encryption.RSAEncrypter
-
Decrypts RSA encrypted data
- decrypt(String, String) - Static method in class dev.netcode.security.encryption.AESEncrypter
-
Decrypts a message using a given password and returns it as String.
- dev.netcode.security - module dev.netcode.security
-
This module provides certain security features like RSA and AES encryption and Identity Management
- dev.netcode.security.encryption - package dev.netcode.security.encryption
- dev.netcode.security.identity - package dev.netcode.security.identity
E
- encode(byte[]) - Static method in class dev.netcode.security.encryption.Base58
-
Encodes a byte array input to Base58
- encrypt(String, String) - Static method in class dev.netcode.security.encryption.AESEncrypter
-
Encrypts a message using a given password and returns it as Base64 encrypted String.
- encrypt(String, PublicKey) - Static method in class dev.netcode.security.encryption.RSAEncrypter
-
Encrypts a message using a RSA
PublicKey
G
- generateKeyPair(int) - Static method in class dev.netcode.security.encryption.RSAEncrypter
-
Generates a
KeyPairwith given size. - generateKeys(int, Path, Path) - Static method in class dev.netcode.security.encryption.KeyGenerator
-
Generates RSA Keys of given size and saves them to files
- generateKeys(int, Path, Path, String) - Static method in class dev.netcode.security.encryption.KeyGenerator
-
Generates RSA Keys of given size, encrypts them using AES and saves them to files
- generatePrivateKeyFromString(byte[]) - Static method in class dev.netcode.security.encryption.RSAEncrypter
-
Generates a private key from byte array
- generatePublicKeyFromString(byte[]) - Static method in class dev.netcode.security.encryption.RSAEncrypter
-
Generates a public key from byte array
- gensalt() - Static method in class dev.netcode.security.encryption.BCrypt
-
Generate a salt for use with the BCrypt.hashpw() method, selecting a reasonable default for the number of hashing rounds to apply
- gensalt(int) - Static method in class dev.netcode.security.encryption.BCrypt
-
Generate a salt for use with the BCrypt.hashpw() method
- gensalt(int, SecureRandom) - Static method in class dev.netcode.security.encryption.BCrypt
-
Generate a salt for use with the BCrypt.hashpw() method
- getFingerprint(PublicKey) - Static method in class dev.netcode.security.encryption.RSAEncrypter
-
Generates a fingerprint string of a public key.
- getHash() - Method in class dev.netcode.security.identity.Identity
-
Hashes the information contained in the identity using SHA-256
- getKey(String) - Static method in class dev.netcode.security.encryption.AESEncrypter
-
Generates a
SecretKeySpecfrom a password to be used for AES encryption - getVerifiableDataString() - Method in class dev.netcode.security.identity.Signature
H
- hashpw(String, String) - Static method in class dev.netcode.security.encryption.BCrypt
-
Hash a password using the OpenBSD bcrypt scheme
I
- Identity - Class in dev.netcode.security.identity
-
Identity instances are meant to contain data about a person, institution or service which is signed by a trusted authority.
- Identity(String, HashMap<String, String>, String) - Constructor for class dev.netcode.security.identity.Identity
-
Creates an identity from the given data
- isUnlocked() - Method in class dev.netcode.security.identity.Identity
- isValid(PublicKey) - Method in class dev.netcode.security.identity.Identity
-
Checks if the
Signatureof the identity is valid using a given public key. - isValid(PublicKey, Identity) - Method in class dev.netcode.security.identity.Signature
-
Checks the validity of the signature
K
- KeyGenerator - Class in dev.netcode.security.encryption
-
This class can be used to generate RSA cryptographic keys and safe them to file
- KeyGenerator() - Constructor for class dev.netcode.security.encryption.KeyGenerator
- KeyLoader - Class in dev.netcode.security.encryption
-
This class simplifies the process of loading Keys from files
- KeyLoader() - Constructor for class dev.netcode.security.encryption.KeyLoader
- keyToString(Key) - Static method in class dev.netcode.security.encryption.RSAEncrypter
-
Encodes a Key to a String representation.
L
- load(Path) - Static method in class dev.netcode.security.identity.Identity
-
Loads an Identity from a file
- loadPrivateKeyFromEncryptedFile(Path, String) - Static method in class dev.netcode.security.encryption.KeyLoader
-
Loads a Base64 encoded RSA private key from an encrypted file
- loadPrivateKeyFromFile(Path) - Static method in class dev.netcode.security.encryption.KeyLoader
-
Loads a Base64 encoded RSA private key from file
- loadPublicKeyFromEncryptedFile(Path, String) - Static method in class dev.netcode.security.encryption.KeyLoader
-
Loads a Base64 encoded RSA public key from an encrypted file
- loadPublicKeyFromFile(Path) - Static method in class dev.netcode.security.encryption.KeyLoader
-
Loads a Base64 encoded RSA public key from file
R
- RSAEncrypter - Class in dev.netcode.security.encryption
-
This class simplifies the process of RSA Encrypting data.
- RSAEncrypter() - Constructor for class dev.netcode.security.encryption.RSAEncrypter
S
- save(Path) - Method in class dev.netcode.security.identity.Identity
-
Saves the Identity to file at a given path.
Inexistent files will be created. - sign(PrivateKey) - Method in class dev.netcode.security.identity.Signature
-
Signs this Signature which makes it valid.
- sign(PrivateKey, String) - Static method in class dev.netcode.security.encryption.RSAEncrypter
-
Generates a RSA signature for a given input.
- Signature - Class in dev.netcode.security.identity
-
Signatures can be used to add prove to an Identity that the contained data either comes from or was checked by a specific person, institution or service
- Signature(String, String, String) - Constructor for class dev.netcode.security.identity.Signature
-
Creates a raw signature that is not signed yet.
T
- toIndentedString() - Method in class dev.netcode.security.identity.Identity
-
Like
Identity.toString()but idents certain parts to make it better readable - toString() - Method in class dev.netcode.security.identity.Identity
-
Generates a String representation of this identity containing the data that is secure to be sent.
- toString() - Method in class dev.netcode.security.identity.Signature
U
- unlock(String) - Method in class dev.netcode.security.identity.Identity
-
Unlocks a loaded identity which makes it possible to use it
V
- verifySignature(PublicKey, String, String) - Static method in class dev.netcode.security.encryption.RSAEncrypter
-
Verifies that a given signature matches given data and a given public key.
All Classes|All Packages