knocks-public / 2024-CircuitBreaker

MIT License
2 stars 0 forks source link

investigate how to read birth of date from ID #5

Closed susumutomita closed 7 months ago

susumutomita commented 7 months ago

Note is https://scrapbox.io/knocks/investigate_how_to_read_birth_of_date_from_ID

susumutomita commented 7 months ago

https://ramble.impl.co.jp/371/

susumutomita commented 7 months ago

https://tech.fusic.co.jp/posts/2023-08-03-expo-modules-api-felica-reader/

susumutomita commented 7 months ago

https://github.com/featherbear/expo-nfc-react-native

susumutomita commented 7 months ago

https://github.com/revtel/react-native-nfc-manager/wiki/Expo-Go

susumutomita commented 7 months ago

https://github.com/revtel/react-native-nfc-manager?tab=readme-ov-file

Image

NfcBは未サポート

susumutomita commented 7 months ago

https://scrapbox.io/knocks/investigate_how_to_read_birth_of_date_from_ID こっちに書く

susumutomita commented 7 months ago

https://qiita.com/ikazayim/items/dea2ac2aabedd96535ce

susumutomita commented 7 months ago

https://github.com/lanesky/mnbcard

susumutomita commented 7 months ago

https://www.jpki.go.jp/procedure/password.html

susumutomita commented 7 months ago

Clone

https://github.com/lanesky/mnbcard
brew install swig
pip install pyscard

create sample program

#! /usr/bin/env python3

import logging
import sys
sys.path.append('./../mnbcard')

from reader import get_reader, connect_card
from api import *
from helper import *

# ログレベルを設定する
root = logging.getLogger()
root.setLevel(logging.DEBUG)

# ログをコンソールに出力
handler = logging.StreamHandler(sys.stdout)
handler.setLevel(logging.INFO)
formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
handler.setFormatter(formatter)
root.addHandler(handler)

# カードリーダー取得
reader = get_reader()
# カードに接続する
connection = connect_card(reader)

profile_pin = input("Please input the profile PIN: ")

# カードインスタンス作成
card = Card(connection)

# 基本4情報取得(券面補助PIN必要)
for iter in card.get_basic_info( profile_pin):
    print(iter)

run

python3 example.py
Please input the profile PIN: XXXXX
Then return basic 4 information
Name
Address
Birth of date
Sex
susumutomita commented 7 months ago

https://tex2e.github.io/blog/crypto/my-number-card

susumutomita commented 7 months ago

https://github.com/treastrain/TRETJapanNFCReader

susumutomita commented 7 months ago

https://qiita.com/treastrain/items/dca0c8d328bb71625c6c

susumutomita commented 7 months ago

https://docs.expo.dev/workflow/customizing/ Use Custom Native module would be resolved reding NFC typeB card in iOS.

susumutomita commented 7 months ago

https://github.com/knocks-public/2024-CircuitBreaker/pull/38

susumutomita commented 7 months ago

https://tech.fusic.co.jp/posts/2023-08-03-expo-modules-api-felica-reader/

susumutomita commented 7 months ago

https://github.com/knocks-public/2024-CircuitBreaker/pull/47