Hawk is a secure key-value storage library for Android that encrypts data at rest while providing a simple API for persistence.
The library solves the problem of storing sensitive application data safely on Android devices. It wraps SharedPreferences with encryption, allowing developers to save and retrieve any type of object—primitives, lists, sets, maps, or custom objects—while automatically handling serialization and encryption transparently. The tool encrypts data before writing it to disk and decrypts it on retrieval, protecting against unauthorized access to the underlying storage files.
Hawk suits Android projects that need straightforward encrypted local storage without the complexity of managing encryption keys manually. It works well for storing user preferences, authentication tokens, or other sensitive configuration data. The library is pluggable, meaning developers can replace any layer with custom implementations if needed, including a provided NoEncryption option for scenarios where encryption should be disabled. The tool represents a breaking change from earlier versions and does not maintain backward compatibility with Hawk 1.x releases.
The project shows consistent maintenance with regular updates addressing issues and improvements. Development activity demonstrates responsiveness to user feedback and bug reports. The codebase remains actively refined with attention to code quality and security considerations.