Package rs.baselib.crypto
Provides support for encrypting, decrypting and signing streams.
The package provides standard implementations and utilities to easy encrypt and decrypt strings as well as working with signatures.
-
Interface Summary Interface Description ExtendedPasswordHasher ExtendsPasswordHasher
by a method to detect responsibility.ICryptingDelegate Delegate for encrypting and decrypting.ICryptingDelegateFactory Interface for factories creating crypting delegates.PasswordHasher An interface that is able to hash passwords and check existing hashes against a password. -
Class Summary Class Description BCrypt BCrypt implements OpenBSD-style Blowfish password hashing using the scheme described in "A Future-Adaptable Password Scheme" by Niels Provos and David Mazieres.BlowfishPasswordHasher Uses salted Blowfish hashes from BCrypt.CombinedPasswordHasher Implements a combined strategy to hash passwords.DataSigner The class for signing and verifying signatures.Decrypter The class for decrypting strings.DefaultCryptingDelegate Implements basic crypting decrypting.DefaultCryptingDelegateFactory Creates a crypting delegator.DummyPasswordHasher A dummy implementation that actually does not hash any password but uses the plain password.Encrypter Class for encrypting strings.EncryptionUtils Basic function for helping in encryption.KeyGen The class for generating key pairs.Md5PasswordHasher Uses salted MD5 hashes fromMd5Crypt
.PhpPasswordHasher Uses PHP-alike hashes.Sha256PasswordHasher Uses salted SHA256 hashes fromSha2Crypt
.Sha512PasswordHasher Uses salted SHA512 hashes fromSha2Crypt
. -
Exception Summary Exception Description DecryptionException Exception thrown from decryption process.EncryptionException Exception thrown from encryption process.SigningException Exception thrown from signing process.