FLUTTER ECOSYSTEM

crypto

Implementations of SHA, MD5, and HMAC cryptographic functions.

Latest version
3.0.7
30-day downloads
12M
Likes
1.9K
Pub points
160

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

The crypto package provides implementations of widely used cryptographic functions in Dart, including SHA, MD5, and HMAC algorithms. Designed for secure data processing, it enables developers to hash data, generate message authentication codes, and ensure data integrity across multiple platforms. The package is maintained by the Dart team and integrates seamlessly into Flutter applications. It supports all major platforms: Android, iOS, Web, macOS, Windows, and Linux, making it ideal for cross-platform security needs.

Use cases
  • Data hashing for integrity checks
  • Secure password storage using salted hashes
  • Generating HMAC signatures for API authentication
  • Encrypting sensitive data before storage
  • Verifying digital signatures
  • Implementing secure session tokens
Key features
  • Supports SHA-1, SHA-256, SHA-384, SHA-512
  • Provides MD5 hashing (for legacy compatibility)
  • HMAC implementation with any hash function
  • Cross-platform compatibility
  • Lightweight and well-maintained
  • Simple, consistent API
Suitable for
  • Applications requiring data integrity verification
  • Backend services needing secure hashing
  • Mobile apps handling user credentials
  • Web applications enforcing secure communication
  • Developers building authentication systems
Considerations
  • MD5 is cryptographically weak; avoid for security-critical uses
  • SHA-1 is deprecated; prefer SHA-256 or higher
  • Not suitable for full encryption—use dedicated encryption libraries
  • Requires careful key management for HMAC
  • Limited to hashing and MAC operations, not full cipher suites
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add crypto

Categories

Dependencies

Dependency list 1 items

Source repository

Related projects

Rankings