패키지, 저장소 및 앱 카테고리 검색

패키지 상세v1.1.3

canonical_json

암호화된 JSON 객체의 해시 또는 서명 시 유용한 표준 JSON 형식을 위한 인코더 및 디코더입니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
5.1만
좋아요
11
Pub 점수
160

패키지 설치

flutter pub add canonical_json

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

JSON 객체의 일관된 직렬화를 보장하는 표준 JSON 인코더 및 디코더를 제공하는 플러터/다트 패키지입니다. 해시 또는 서명과 같은 암호화 작업에서 입력이 동일하면 형식의 차이에 관계없이 항상 동일한 출력을 생성해야 하므로 특히 유용합니다. 이 패키지는 결정론성을 달성하기 위해 키의 엄격한 순서와 정밀한 포맷을 강제합니다. 안드로이드, iOS, 웹, 맥OS, 윈도우, 리눅스 등 모든 주요 플랫폼을 지원하여 보안적이고 예측 가능한 JSON 처리가 필요한 크로스플랫폼 애플리케이션에 이상적입니다.

사용 사례

  • JSON 데이터의 암호화 해시
  • JSON 페이로드의 안전한 서명
  • 결정적 JSON 직렬화
  • 크로스 플랫폼 데이터 일관성
  • API 요청/응답 무결성 검증
  • JSON 기반 디지털 서명

주요 기능

  • 엄격한 키 순서
  • 공백 또는 서식 변형 없음
  • 결정적 출력
  • 모든 주요 플랫폼을 지원합니다
  • 경량이고 효율적
  • 표준 JSON 표준을 준수합니다

적합한 대상

  • 안전한 JSON 처리가 필요한 응용 프로그램
  • 재현 가능한 해시 값을 필요로 하는 시스템
  • 블록체인 또는 암호 프로토콜
  • 엄격한 직렬화 규칙을 가진 상호 운용성 있는 API
  • 안전한 데이터 교환 시스템을 구축하는 개발자

고려 사항

  • 인간이 읽기 적합한 JSON 출력에는 적합하지 않습니다
  • 매우 큰 JSON 구조에서는 성능에 영향을 줄 수 있습니다
  • 엄격한 형식 때문에 디버깅 시 주의 깊게 다뤄야 합니다
  • 결정론이 중요한 사용 사례에 한정됨
  • 사용자 정의 직렬화 로직을 지원하지 않습니다

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

Dart Neats

A collection of a small neat packages for dart.

Disclaimer: This is not an officially supported Google product.

This repository is meant as a playground where small neat packages are cultivated. If package grows too large and complex and needs a dedicated issue tracker it should be moved to a dedicated repository.

Each folder in this repository contains a neat pub package. This project aims to use a separate package whenever it makes sense to have an independent major version. This often means splitting functionality into separate packages, which can be reused independently.

Package Description Version Test
acyclic_steps An explicit acyclic step dependency framework with concurrent evaluation and dependency injection. pub package acyclic_steps
canonical_json Encoder and decoder for a canonical JSON format, useful when cryptographically hashing or signing JSON objects. pub package canonical_json
chunked_stream Utilities for working with chunked streams, such as byte streams which is often given as a stream of byte chunks with type Stream<List<int>>. pub package chunked_stream
dartdoc_test Utilities for testing code snippets embedded in documentation comments. pub package dartdoc_test
http_methods List of all HTTP methods registered with IANA as list of strings, and metadata such as whether a method idempotent. pub package http_methods
neat_cache A neat cache abstraction for wrapping in-memory or redis caches. pub package neat_cache
neat_periodic_task Auxiliary classes for reliably running a periodic task in a long-running process such as web-server. pub package neat_periodic_task
pem PEM encoding/decoding of textual keys following RFC 7468, supporting both lax/strict-mode, and certificates chains of concatenated PEM blocks. pub package pem
retry Utility for wrapping an asynchronous function in automatic retry logic with exponential back-off, useful when making requests over network. pub package retry
safe_url_check Check if an untrusted URL is broken, without allowing connections to a private IP address. pub package safe_url_check
sanitize_html Function for sanitizing HTML to prevent XSS by restrict elements and attributes to a safe subset of allowed values. pub package sanitize_html
slugid A URL-safe base64 encoding for UUIDv4 stripped of padding. Useful when embedding short random UUIDs in URLs. pub package slugid
typed_sql Package for doing SQL with some type safety. pub package typed_sql
vendor Utility for vendoring packages into a project and rewriting import/export statements. pub package vendor

Repository Management

Packages in this repository uses pub workspaces a single dart pub get will resolve dependencies for all of them. Configuration of Github Actions, issue templates, issue labels, etc is automated with scripts in tool/.

Contributing

We love patches and contributions, please refer to CONTRIBUTING.md for technicalities on CLA and community guidelines. As this project aims to build neat packages using other neat packages we might also accept proposals for new neat packages, though it's often easier to publish independently.

License

Unless stated otherwise contents in this repository is licensed under Apache License 2.0, see LICENSE.

카테고리

의존성

의존성 목록 2 개

소스 저장소

이 패키지를 사용하는 프로젝트