Search packages, repositories and app categories

Package detailsv3.0.8

crypto

Implementations of SHA, MD5, and HMAC cryptographic functions.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
17.6M
Likes
1.9K
Pub points
160

Install package

flutter pub add crypto

Package Overview

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

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

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Overview

This repository is home to various Dart packages under the dart.dev publisher.

Packages

Package Description Issues Version
args Library for defining parsers for parsing raw command-line arguments into a set of options and values using GNU and POSIX style options. issues pub package
async Utility functions and classes related to the 'dart:async' library. issues pub package
characters String replacement with operations that are Unicode/grapheme cluster aware. issues pub package
collection Collections and utilities functions and classes related to collections. issues pub package
convert Utilities for converting between data representations. Provides a number of Sink, Codec, Decoder, and Encoder types. issues pub package
crypto Implementations of SHA, MD5, and HMAC cryptographic functions. issues pub package
fixnum Library for 32- and 64-bit signed fixed-width integers with consistent behavior between native and JS runtimes. issues pub package
lints Official Dart lint rules. Defines the 'core' and 'recommended' set of lints suggested by the Dart team. issues pub package
logging Provides APIs for debugging and error logging, similar to loggers in other languages, such as the Closure JS Logger and java.util.logging.Logger. issues pub package
os_detect Platform independent OS detection. issues pub package
path A string-based path manipulation library. issues pub package
platform A pluggable, mockable platform information abstraction for Dart. issues pub package
typed_data Utility functions and classes related to the dart:typed_data library. issues pub package

Publishing automation

For information about our publishing automation and release process, see https://github.com/dart-lang/ecosystem/wiki/Publishing-automation.

For additional information about contributing, see our contributing page.

Categories

Source repository

Projects using this package

Rankings