Skip navigation links
A B C D E F G H K N O P R S U 

A

apply() - Method in class at.favre.lib.armadillo.SecureSharedPreferences.Editor
 
Armadillo - Class in at.favre.lib.armadillo
The main API of this library.
Armadillo.Builder - Class in at.favre.lib.armadillo
 
at.favre.lib.armadillo - package at.favre.lib.armadillo
 
AuthenticatedEncryption - Interface in at.favre.lib.armadillo
Authenticated encryption (AE) and authenticated encryption with associated data (AEAD, variant of AE) is a form of encryption which simultaneously provides confidentiality, integrity, and authenticity assurances on the data.
AuthenticatedEncryption.KeyStrength - Annotation Type in at.favre.lib.armadillo
 
AuthenticatedEncryptionException - Exception in at.favre.lib.armadillo
Thrown during the process of AuthenticatedEncryptionException
AuthenticatedEncryptionException(String) - Constructor for exception at.favre.lib.armadillo.AuthenticatedEncryptionException
 
AuthenticatedEncryptionException(String, Throwable) - Constructor for exception at.favre.lib.armadillo.AuthenticatedEncryptionException
 

B

build() - Method in class at.favre.lib.armadillo.Armadillo.Builder
Build a SharedPreferences instance
ByteArrayRuntimeObfuscator - Interface in at.favre.lib.armadillo
Simple wrapper for obfuscated in-memory byte array.
ByteArrayRuntimeObfuscator.Default - Class in at.favre.lib.armadillo
 
byteSizeLength(int) - Method in interface at.favre.lib.armadillo.AuthenticatedEncryption
Get the required key size length in byte for given security strenght type

C

clear() - Method in class at.favre.lib.armadillo.SecureSharedPreferences.Editor
 
clearKey() - Method in interface at.favre.lib.armadillo.DataObfuscator
Clears the internal key reference
clearKey() - Method in class at.favre.lib.armadillo.HkdfXorObfuscator
 
clearKey() - Method in class at.favre.lib.armadillo.NoObfuscator
 
commit() - Method in class at.favre.lib.armadillo.SecureSharedPreferences.Editor
 
compress() - Method in class at.favre.lib.armadillo.Armadillo.Builder
Compresses the content with Gzip before encrypting and writing it to shared preference.
compress(Compressor) - Method in class at.favre.lib.armadillo.Armadillo.Builder
Compresses the content with given compressor before encrypting and writing it to shared preference.
compress(byte[]) - Method in class at.favre.lib.armadillo.DisabledCompressor
 
compress(byte[]) - Method in class at.favre.lib.armadillo.GzipCompressor
 
contains(String) - Method in class at.favre.lib.armadillo.SecureSharedPreferences
 
CONTENT_KEY_OUT_BYTE_LENGTH - Static variable in class at.favre.lib.armadillo.Armadillo
 
contentKeyDigest(byte[]) - Method in class at.favre.lib.armadillo.Armadillo.Builder
 
contentKeyDigest(int) - Method in class at.favre.lib.armadillo.Armadillo.Builder
 
contentKeyDigest(StringMessageDigest) - Method in class at.favre.lib.armadillo.Armadillo.Builder
 
create(SharedPreferences) - Static method in class at.favre.lib.armadillo.Armadillo
 
create(Context, String) - Static method in class at.favre.lib.armadillo.Armadillo
 
create(byte[]) - Method in interface at.favre.lib.armadillo.DataObfuscator.Factory
Creates a new data obfuscator with given key
create(Context, String) - Static method in class at.favre.lib.armadillo.EncryptionFingerprintFactory
Creates a new EncryptionFingerprint including the following data: Fingerprint of the APK signature Android ID: a 8 byte random value on SDK 26 and higher, unique to each combination of app-signing key, user, and device - on SDK 25 and lower only unique to user and device Application package name, Brand, model and name of the device 32 byte hardcoded static random value
create(byte[]) - Method in class at.favre.lib.armadillo.HkdfXorObfuscator.Factory
 
create(byte[]) - Method in class at.favre.lib.armadillo.NoObfuscator.Factory
 
cryptoProtocolVersion(int) - Method in class at.favre.lib.armadillo.Armadillo.Builder
Per default the crypto/data format version is '0', but if the behavior is changed by e.g.

D

DataObfuscator - Interface in at.favre.lib.armadillo
Data obfuscation which obfuscates the given byte arrays.
DataObfuscator.Factory - Interface in at.favre.lib.armadillo
Factory method for obfuscator
dataObfuscatorFactory(DataObfuscator.Factory) - Method in class at.favre.lib.armadillo.Armadillo.Builder
Set your own data obfuscation implementation.
decompress(byte[]) - Method in class at.favre.lib.armadillo.DisabledCompressor
 
decompress(byte[]) - Method in class at.favre.lib.armadillo.GzipCompressor
 
decrypt(byte[], byte[], byte[]) - Method in interface at.favre.lib.armadillo.AuthenticatedEncryption
Decrypt and verifies the authenticity of given encrypted data
Default(byte[]) - Constructor for class at.favre.lib.armadillo.EncryptionFingerprint.Default
 
Default(boolean, boolean) - Constructor for class at.favre.lib.armadillo.RecoveryPolicy.Default
 
deobfuscate(byte[]) - Method in interface at.favre.lib.armadillo.DataObfuscator
De-Obfuscates the given byte array.
deobfuscate(byte[]) - Method in class at.favre.lib.armadillo.HkdfXorObfuscator
 
deobfuscate(byte[]) - Method in class at.favre.lib.armadillo.NoObfuscator
 
derive(String, String) - Method in interface at.favre.lib.armadillo.StringMessageDigest
Derives given key given by the caller with given usage description to a hash
DisabledCompressor - Class in at.favre.lib.armadillo
A compressor which does not compress anything, but just returns the same array.
DisabledCompressor() - Constructor for class at.favre.lib.armadillo.DisabledCompressor
 

E

edit() - Method in class at.favre.lib.armadillo.SecureSharedPreferences
 
encrypt(byte[], byte[], byte[]) - Method in interface at.favre.lib.armadillo.AuthenticatedEncryption
Encrypts and adds a authentication tag the given content
encryptionFingerprint(Context) - Method in class at.favre.lib.armadillo.Armadillo.Builder
 
encryptionFingerprint(Context, byte[]) - Method in class at.favre.lib.armadillo.Armadillo.Builder
 
encryptionFingerprint(Context, String...) - Method in class at.favre.lib.armadillo.Armadillo.Builder
 
encryptionFingerprint(EncryptionFingerprint) - Method in class at.favre.lib.armadillo.Armadillo.Builder
 
encryptionFingerprint(byte[]) - Method in class at.favre.lib.armadillo.Armadillo.Builder
 
EncryptionFingerprint - Interface in at.favre.lib.armadillo
A EncryptionFingerprint is a semi secret "key" which, during runtime, gathers entropy from e.g.
EncryptionFingerprint.Default - Class in at.favre.lib.armadillo
Default implementation of a EncryptionFingerprint with simple internal in-memory data obfuscation.
EncryptionFingerprintFactory - Class in at.favre.lib.armadillo
Factory for creating EncryptionFingerprintFactory in Android
encryptionKeyStrength(int) - Method in class at.favre.lib.armadillo.Armadillo.Builder
Set the key length for the symmetric encryption.
EncryptionProtocolException - Exception in at.favre.lib.armadillo
Exception thrown during EncryptionProtocol encrypt or decrpyt
EncryptionProtocolException(String) - Constructor for exception at.favre.lib.armadillo.EncryptionProtocolException
 
EncryptionProtocolException(String, Throwable) - Constructor for exception at.favre.lib.armadillo.EncryptionProtocolException
 
EncryptionProtocolException(Throwable) - Constructor for exception at.favre.lib.armadillo.EncryptionProtocolException
 

F

Factory() - Constructor for class at.favre.lib.armadillo.HkdfXorObfuscator.Factory
 
Factory() - Constructor for class at.favre.lib.armadillo.NoObfuscator.Factory
 
FastKeyStretcher - Class in at.favre.lib.armadillo
This is a implementation for a key derivation function with disabled key stretching function.
FastKeyStretcher() - Constructor for class at.favre.lib.armadillo.FastKeyStretcher
 

G

getAll() - Method in class at.favre.lib.armadillo.SecureSharedPreferences
This will get all handled keys from the store.
getBoolean(String, boolean) - Method in class at.favre.lib.armadillo.SecureSharedPreferences
 
getBytes() - Method in class at.favre.lib.armadillo.ByteArrayRuntimeObfuscator.Default
 
getBytes() - Method in interface at.favre.lib.armadillo.ByteArrayRuntimeObfuscator
Get an de-obfuscated copy of the original data.
getBytes() - Method in class at.favre.lib.armadillo.EncryptionFingerprint.Default
 
getBytes() - Method in interface at.favre.lib.armadillo.EncryptionFingerprint
 
getFloat(String, float) - Method in class at.favre.lib.armadillo.SecureSharedPreferences
 
getInt(String, int) - Method in class at.favre.lib.armadillo.SecureSharedPreferences
 
getLong(String, long) - Method in class at.favre.lib.armadillo.SecureSharedPreferences
 
getString(String, String) - Method in class at.favre.lib.armadillo.SecureSharedPreferences
 
getStringSet(String, Set<String>) - Method in class at.favre.lib.armadillo.SecureSharedPreferences
 
GzipCompressor - Class in at.favre.lib.armadillo
A compressor using Gzip algorithm provided by the JDK
GzipCompressor() - Constructor for class at.favre.lib.armadillo.GzipCompressor
 

H

HkdfXorObfuscator - Class in at.favre.lib.armadillo
A simple obfuscator using HKDF to derive keys for individual blocks and uses a simple version of CTR block mode.
HkdfXorObfuscator.Factory - Class in at.favre.lib.armadillo
 

K

keyStretchingFunction(KeyStretchingFunction) - Method in class at.favre.lib.armadillo.Armadillo.Builder
Set a different key derivation function for provided password.
KeyStretchingFunction - Interface in at.favre.lib.armadillo
In cryptography, key stretching techniques are used to make a possibly weak key, typically a password or passphrase, more secure against a brute-force attack by increasing the time it takes to test each possible key.

N

NoObfuscator - Class in at.favre.lib.armadillo
A simple No-Op implementation for DataObfuscator.
NoObfuscator() - Constructor for class at.favre.lib.armadillo.NoObfuscator
 
NoObfuscator.Factory - Class in at.favre.lib.armadillo
 

O

obfuscate(byte[]) - Method in interface at.favre.lib.armadillo.DataObfuscator
Obfuscates the given byte array.
obfuscate(byte[]) - Method in class at.favre.lib.armadillo.HkdfXorObfuscator
 
obfuscate(byte[]) - Method in class at.favre.lib.armadillo.NoObfuscator
 

P

password(char[]) - Method in class at.favre.lib.armadillo.Armadillo.Builder
Provide a user password used for all of entries of the SharedPreferences.
PBKDF2KeyStretcher - Class in at.favre.lib.armadillo
In cryptography, PBKDF2 (Password-Based Key Derivation Function 2) are key derivation functions with a sliding computational cost, aimed to reduce the vulnerability of encrypted keys to brute force attacks.
PBKDF2KeyStretcher() - Constructor for class at.favre.lib.armadillo.PBKDF2KeyStretcher
Create a new instance with default iteration count (see PBKDF2KeyStretcher.PBKDF2_DEFAULT_ITERATIONS
PBKDF2KeyStretcher(int, Provider) - Constructor for class at.favre.lib.armadillo.PBKDF2KeyStretcher
Creates a new instance.
putBoolean(String, boolean) - Method in class at.favre.lib.armadillo.SecureSharedPreferences.Editor
 
putFloat(String, float) - Method in class at.favre.lib.armadillo.SecureSharedPreferences.Editor
 
putInt(String, int) - Method in class at.favre.lib.armadillo.SecureSharedPreferences.Editor
 
putLong(String, long) - Method in class at.favre.lib.armadillo.SecureSharedPreferences.Editor
 
putString(String, String) - Method in class at.favre.lib.armadillo.SecureSharedPreferences.Editor
 
putStringSet(String, Set<String>) - Method in class at.favre.lib.armadillo.SecureSharedPreferences.Editor
 

R

recoveryPolicy(boolean, boolean) - Method in class at.favre.lib.armadillo.Armadillo.Builder
 
recoveryPolicy(RecoveryPolicy) - Method in class at.favre.lib.armadillo.Armadillo.Builder
 
RecoveryPolicy - Interface in at.favre.lib.armadillo
Defines how the storage should behave on errors
RecoveryPolicy.Default - Class in at.favre.lib.armadillo
Default implementation
registerOnSharedPreferenceChangeListener(SharedPreferences.OnSharedPreferenceChangeListener) - Method in class at.favre.lib.armadillo.SecureSharedPreferences
 
remove(String) - Method in class at.favre.lib.armadillo.SecureSharedPreferences.Editor
 

S

secureRandom(SecureRandom) - Method in class at.favre.lib.armadillo.Armadillo.Builder
Provide your own SecureRandom implementation.
SecureSharedPreferenceCryptoException - Exception in at.favre.lib.armadillo
 
SecureSharedPreferenceCryptoException(String, Throwable) - Constructor for exception at.favre.lib.armadillo.SecureSharedPreferenceCryptoException
 
SecureSharedPreferences - Class in at.favre.lib.armadillo
A simple wrapper implementation using the DefaultEncryptionProtocol before persisting the data.
SecureSharedPreferences(Context, String, EncryptionProtocol.Factory, char[]) - Constructor for class at.favre.lib.armadillo.SecureSharedPreferences
 
SecureSharedPreferences(Context, String, EncryptionProtocol.Factory, RecoveryPolicy, char[]) - Constructor for class at.favre.lib.armadillo.SecureSharedPreferences
 
SecureSharedPreferences(SharedPreferences, EncryptionProtocol.Factory, RecoveryPolicy, char[]) - Constructor for class at.favre.lib.armadillo.SecureSharedPreferences
 
SecureSharedPreferences.Editor - Class in at.favre.lib.armadillo
Wrapper for Android's SharedPreferences.Editor.
securityProvider(Provider) - Method in class at.favre.lib.armadillo.Armadillo.Builder
Set the security provider for most cryptographic primitives (symmetric encryption, pbkdf2, ...).
shouldRemoveBrokenContent() - Method in class at.favre.lib.armadillo.RecoveryPolicy.Default
 
shouldRemoveBrokenContent() - Method in interface at.favre.lib.armadillo.RecoveryPolicy
If the content should be automatically removed when it cannot be read.
shouldThrowRuntimeException() - Method in class at.favre.lib.armadillo.RecoveryPolicy.Default
 
shouldThrowRuntimeException() - Method in interface at.favre.lib.armadillo.RecoveryPolicy
If the content cannot be read (or written) defines if a runtime exception should be thrown ( i.e.
STRENGTH_HIGH - Static variable in interface at.favre.lib.armadillo.AuthenticatedEncryption
High Security which is equivalent to a AES key size of 128 bit
STRENGTH_VERY_HIGH - Static variable in interface at.favre.lib.armadillo.AuthenticatedEncryption
Very high security which is equivalent to a AES key size of 256 bit Note: This is usually not required.
stretch(byte[], char[], int) - Method in class at.favre.lib.armadillo.FastKeyStretcher
 
stretch(byte[], char[], int) - Method in interface at.favre.lib.armadillo.KeyStretchingFunction
Derives and stretches the given password with given salt to desired out length.
stretch(byte[], char[], int) - Method in class at.favre.lib.armadillo.PBKDF2KeyStretcher
 
StringMessageDigest - Interface in at.favre.lib.armadillo
A hash function to convert a string and usage name to a string representation of a hash.
symmetricEncryption(AuthenticatedEncryption) - Method in class at.favre.lib.armadillo.Armadillo.Builder
Set your own implementation of AuthenticatedEncryption.

U

unregisterOnSharedPreferenceChangeListener(SharedPreferences.OnSharedPreferenceChangeListener) - Method in class at.favre.lib.armadillo.SecureSharedPreferences
 
A B C D E F G H K N O P R S U 
Skip navigation links