DS28C family; is an I2C security IC used in embedded systems requiring secure authentication, device authentication and secure access. This library provides communication with DS28C ICs through a minimalist but powerful API.
Features
With this library, you can easily perform the following operations via DS28C:
- Secure authentication over I2C
- Unique ID reading
- SHA-256 based challenge–response operations
- Secure access to memory areas
- Fast initialization & low resource consumption
- Full compatibility with Arduino and similar microcontrollers
All I2C traffic is optimized and suitable for secure operation on low power consuming devices.
Application Scenarios
DS28C is especially preferred in the following areas:
- Blocking fake devices in IoT devices
- Secure authentication in battery packs
- License protection in industrial equipment
- Unique ID verification in sensor modules
- Secure protocol application in smart agriculture & field devices
It is an ideal security solution for commercial products requiring device authentication.
Installation
Arduino IDE
- Arduino IDE → Library Manager
- Search: DS28C
- Install akkoyun / DS28C library
PlatformIO
Add to platformio.ini:
lib_deps = akkoyun/DS28C
If you wish, you can fix the version:
lib_deps = akkoyun/DS28C@^1.0.0
Basic Usage
#include <DS28C.h>
DS28C auth;
void setup() {
Serial.begin(115200);
auth.begin();
}
void loop() {
uint64_t uid = auth.getUID();
Serial.print("UID: ");
Serial.println(uid, HEX);
delay(1000);
}
When the library is initialized, the device is automatically scanned and becomes available for verification.
Advanced Functions
This library also includes the following security functions:
readMemory()— Secure memory readingwriteMemory()— Authorized memory writingcomputeSHA()— SHA-256 challenge–responseverify()— Device verificationgetUID()— Unique ID reading
Offers a lightweight and reliable solution in security-focused embedded projects.
Bu kütüphane, gerçek sahada kullanılan projelerden gelen ihtiyaçlara göre sürekli gelişen bir açık kaynak projedir. Kullanıcı geri bildirimleri, yeni fonksiyonların eklenmesi ve mevcut yapının iyileştirilmesi açısından kritik öneme sahiptir.
Bu kütüphaneyi hem kişisel hem de ticari projelerinde özgürce kullanabilirsin. Herhangi bir lisans kısıtı uygulanmamaktadır; amacım, bu kütüphanenin mümkün olduğunca fazla gerçek dünya projesinde yer almasıdır. Özel bir entegrasyon ihtiyacın, ticari bir planın veya teknik bir sorunun varsa bana e‑posta üzerinden her zaman ulaşabilirsin: akkoyun@me.com Geri bildirimlerini veya kullanım senaryolarını paylaşman, projeyi geliştirmem açısından büyük katkı sağlar.