Wave
Greetings,
Today I announce β
Wave,β the encrypted alternative to the tiny database component. I created this to make kreating your projects simpler, nearly everything is done for you behind-the-scenes
.
Key points
- Built on the EncryptedFile and EncryptedSharedPreferences classes
- Decrypt and encrypt files
- Retrieve and store key-value pairs with encryption
- Wave works with API 21+ and was tested with API 30
Delete
There is one parameter to this method:
namespace
USE Delete a namespace altogether, including unregistering its listener if registered.
Remove
There are two parameters to this method:
keynamespace
USE Remove a key and its associated value from a namespace.
RemoveAll
There is one parameter to this method:
namespace
USE Remove all keys and their associated values from a namespace.
RemoveAllFiles
USE Remove all encrypted files.
Retrieve
There are three parameters to this method:
defaultResultkeynamespace
key is interoperable, meaning:
- using a file name as the
keywill retrieve the content that was associated with thevalue. - using a normal string as the
keywill retrieve thevaluewhich made this a key-value pair.
namespace is ignored if:
keyis formatted as a file name.
ALTERNATE USE Retrieve the value of a key formatted as a file name.
MAIN USE Retrieve the associated value of a key.
RetrieveAll
There is one parameter to this method:
namespace
USE Retrieve all keys and their associated values from a namespace.
RetrieveAllFiles
USE Retrieve all encrypted files and their content.
SharedPreferenceChanged
There are three parameters to this event:
keynamespacevalue
USE Listen for shared preference events.
Store
There are three parameters to this method:
keynamespacevalue
key and value are interoperable, meaning:
- using a file name as the
keywill cause thevalueto be the content. - using a normal string as the
keywill cause thevalueto make this a key-value pair.
namespace is ignored if:
keyis formatted as a file name.
ALTERNATE USE Store a key as a file name with its content as the value.
IMPORTANT The key will be overwritten with the new value, even if itβs a file.
MAIN USE Store a key and value in a namespace.
NOTE Files can be found in the external files directory, but they wonβt be readable.
Files
Wave is 614 KB, but it protects your users privacy, so I think itβs fair. And itβs free?
