rsa_identification 2.0.0 copy "rsa_identification: ^2.0.0" to clipboard
rsa_identification: ^2.0.0 copied to clipboard

A Dart Library for decoding and providing South African identification details from documents such as Driver's licenses and Smart ID's.

example/rsa_identification_example.dart

import 'package:rsa_identification/rsa_identification.dart';

void main() {
  final idCardBarcode =
      'SURNAME|NAME|GENDER|NATIONALITY|ID NUMBER|29 Jul 2000|COUNTRY OF BIRTH|CITIZENSHIP STATUS|26 Jan 2017|23370|SMART ID NUMBER|1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890';
  final idCard = RsaIdCard.fromBarcodeString(idCardBarcode);
  print('ID Card - First Names: ${idCard.firstNames}');
  print('ID Card - Last Name: ${idCard.surname}');
  print('ID Card - ID Number: ${idCard.idNumber}');

  final idBookBarcode = '8109124800088';
  final idBook = RsaIdBook.fromIdNumber(idBookBarcode);
  print('ID Book - Date of Birth: ${idBook.birthDate}');
  print('ID Book - Gender: ${idBook.gender}');
  print('ID Book - Citizenship: ${idBook.citizenshipStatus}');
}
4
likes
130
points
92
downloads

Publisher

verified publisherborn.dev

Weekly Downloads

A Dart Library for decoding and providing South African identification details from documents such as Driver's licenses and Smart ID's.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

asn1lib, freezed_annotation

More

Packages that depend on rsa_identification