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

패키지 상세v0.1.2

sasl_scram

sasl/scram 인증을 제공하는 패키지입니다. scram-1 및 scram-256 모두 관리됩니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
13.4만
좋아요
4
Pub 점수
150

패키지 설치

flutter pub add sasl_scram

패키지 개요

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

sasl_scram 패키지는 SASL SCRAM 인증 메커니즘의 구현을 제공하며, SCRAM-SHA-1 및 SCRAM-SHA-256 둘 다를 지원합니다. MongoDB 또는 기타 SCRAM을 사용하는 서비스와 같이 SASL이 필요한 프로토콜에 대해 안전한 비밀번호 기반 인증을 가능하게 합니다. 이 패키지는 크로스 플랫폼 사용을 위해 설계되었으며, Android, iOS, Web, macOS, Windows, Linux에서 Flutter 애플리케이션에 원활하게 통합될 수 있습니다. 암호화 작업을 안전하게 처리하고 표준 SCRAM 프로토콜 사양을 따릅니다.

사용 사례

  • 데이터베이스 연결에서의 안전한 인증
  • SCRAM 기반 로그인 시스템 구현
  • SASL 인증이 필요한 서비스와의 통합
  • 다중 플랫폼 보안 자격 증명 처리
  • 현대의 비밀번호 기반 인증 프로토콜 지원

주요 기능

  • SCRAM-SHA-1 및 SCRAM-SHA-256를 지원합니다
  • 크로스 플랫폼 호환성
  • 보안 암호화 구현
  • 표준 준수 SASL SCRAM
  • 경량이고 통합하기 쉬움

적합한 대상

  • 보안 백엔드 통합을 구축하는 개발자
  • SCRAM 인증이 필요한 응용 프로그램
  • 보안 로그인 워크플로우가 필요한 플러터 앱
  • MongoDB 또는 유사한 데이터베이스를 사용하는 프로젝트
  • 프로토콜 표준 보안을 우선시하는 팀

고려 사항

  • SASL 및 SCRAM 프로토콜에 대한 이해가 필요합니다
  • 인증이 아닌 사용 사례에는 적합하지 않습니다
  • 기본 Dart 암호 구현에 따라 다름
  • SCRAM 변형에 한정되며, 다른 SASL 메커니즘은 제외
  • 호환되는 서버 측 인증과 함께 사용해야 합니다

원본 README

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

Sasl Scram for Dart

Implementation of the Salted Challenge Response Authentication Mechanism in Dart.

Usage

A simple usage example:

import 'dart:typed_data';

import 'package:crypto/crypto.dart';
import 'package:sasl_scram/sasl_scram.dart';

void main() {
  final bytesReceivedFromServer = Uint8List(0); // No data needed when starting authentication

  final authenticator = ScramAuthenticator(
    'SCRAM-SHA-256', // Optionally choose hash method from a list provided by the server
    sha256,
    UsernamePasswordCredential(username: 'dart', password: 'dart'),
  );

  final bytesToSentToServer = authenticator.handleMessage(
    SaslMessageType.AuthenticationSASL, // Get type type from the server message
    bytesReceivedFromServer, // Append the remaining bytes
  );
  print(bytesToSentToServer); // Wrap these bytes with your message which goes back to the server
}

Features and bugs

Please file feature requests and bugs at the issue tracker.

카테고리

의존성

의존성 목록 4 개

소스 저장소

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

순위