Search packages, repositories and app categories

Package detailsv1.1.1

sec

Implementation of Standards for Efficient Cryptography (SEC) including SECP256K1 and SECP256R1.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
45.9K
Likes
4
Pub points
160

Install package

flutter pub add sec

Package Overview

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

The sec package provides implementations of Standards for Efficient Cryptography (SEC), specifically supporting the SECP256K1 and SECP256R1 elliptic curves. It enables secure cryptographic operations such as key generation, signing, and verification in Dart applications across multiple platforms. Designed for developers working with blockchain, digital signatures, or secure communications, it offers a reliable foundation for ECC-based security features. The package is open-source and maintained with active development.

Use cases

  • Blockchain application development
  • Digital signature generation
  • Secure key exchange
  • Authentication protocols
  • Cryptocurrency wallet integration
  • Secure API communication

Key features

  • Support for SECP256K1 and SECP256R1 curves
  • Cross-platform compatibility
  • Open-source and actively maintained
  • Lightweight cryptographic operations
  • Integration with Flutter apps
  • Robust ECC implementation

Suitable for

  • Developers building blockchain tools
  • Apps requiring secure digital signatures
  • Projects using Bitcoin or Ethereum-like cryptography
  • Flutter apps needing ECC support
  • Security-focused mobile and web applications

Considerations

  • Requires understanding of elliptic curve cryptography
  • Not suitable for non-cryptographic use cases
  • Depends on underlying platform crypto libraries
  • Best used with proper security practices
  • Limited to specific SEC-compliant curves
  • May require additional validation in production environments

Original README

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

package publisher

Implementation of Standards for Efficient Cryptography (SEC) including SECP256K1 and SECP256R1.

Features

  • PublicKey Recovery Id Calculation.
  • Secp160r1
  • Secp160r2
  • Secp192k1
  • Secp192r1
  • Secp224k1
  • Secp224r1
  • Secp256k1 (Commonly used in cryptocurrencies)
  • Secp256r1
  • Secp384r1
  • Secp521r1
  • Brainpoolp160r1
  • Brainpoolp160t1
  • Brainpoolp192r1
  • Brainpoolp192t1
  • Brainpoolp224r1
  • Brainpoolp224t1
  • Brainpoolp256r1
  • Brainpoolp256t1
  • Brainpoolp320r1
  • Brainpoolp320t1
  • Brainpoolp384r1
  • Brainpoolp384t1
  • Brainpoolp512r1
  • Brainpoolp512t1
  • Gostr3410_2001_cryptopro_a
  • Gostr3410_2001_cryptopro_b
  • Gostr3410_2001_cryptopro_c
  • Gostr3410_2001_cryptopro_xcha
  • Gostr3410_2001_cryptopro_xchb
  • Prime192v1
  • Prime192v2
  • Prime192v3
  • Prime239v1
  • Prime239v2
  • Prime239v3
  • Prime256v1
  • Secp112r1
  • Secp112r2
  • Secp128r1
  • Secp128r2
  • Secp160k1

Getting started

dependencies:
  sec: any

Usage

import 'package:sec/sec.dart';
import 'package:convert/convert.dart';
final privateKey = BigInt.parse(
'c57304b3a53051600d7035fc593083810a8fa250e6a7a2803cf6a0f3c2750503',
radix: 16,
);

final publicKey = Secp256k1.createPublicKey(privateKey, true);
final pkHex = hex.encode(publicKey);
print('Public Key: $pkHex');

// 03566b04ce8459c8e2f95691ff17625a0b84773ecd2b65f597c05bd90fa8609ed6

Additional information

This package uses pointycastle.

Categories

Dependencies

Dependency list 1 items

Source repository

Projects using this package