Skip to main content

Device Pairing System

ErikrafT Drop’s device pairing feature allows devices to maintain persistent connections across different networks. Paired devices can discover each other regardless of their current network location, providing seamless file sharing capabilities.

Pairing Architecture

Room Secret System

Device pairing uses cryptographically secure room secrets:

Persistent Storage

Paired device information is stored using IndexedDB:

Pairing Process

1. Initiation Phase

Pair Device Dialog

Server-Side Initiation

2. Key Generation

Secure Pair Key Creation

Key Format

  • Length: 6 digits
  • Format: Numeric string (e.g., “123456”)
  • Uniqueness: Guaranteed unique within server instance
  • Expiration: Temporary, expires after pairing or timeout

3. QR Code Generation

QR Code Display

Pair URL Generation

Joining a Pair

1. Key Entry

2. Server Validation

3. Pair Confirmation

Paired Device Management

Storage Structure

Device List Management

Auto-Accept Feature

Security Features

Cryptographic Security

  • Room Secrets: 256-character cryptographically random strings
  • Hash Validation: SHA3-512 hashing for integrity verification
  • Rate Limiting: 10 pairing attempts per 10 seconds
  • Temporary Keys: Pair keys expire after use

Privacy Protection

Cross-Network Discovery

Persistent Connections

Paired devices maintain discoverability across different networks:
  1. Local Network: Automatic discovery via IP-based rooms
  2. Remote Networks: Discovery via shared room secrets
  3. Network Switching: Seamless transition between networks
  4. Offline Support: Pairing information persists offline

Room Secret Synchronization

Pairing Management

Edit Paired Devices

Unpairing Devices

Use Cases

Personal Device Ecosystem

  • Phone to Computer: Quick photo and document transfer
  • Tablet to Laptop: Seamless file synchronization
  • Work to Home: Access files across different networks

Family Sharing

  • Parent-Child Devices: Easy family file sharing
  • Multi-Device Households: Shared family devices
  • Guest Access: Temporary pairing for visitors

Professional Use

  • Team Collaboration: Persistent team device connections
  • Conference Sharing: Quick setup for presentations
  • Remote Work: Home-office device integration

Troubleshooting

Common Issues

  • Invalid Key: Ensure 6-digit key is entered correctly
  • Expired Key: Pair keys expire after use or timeout
  • Network Issues: Both devices need internet connection for pairing
  • Browser Storage: Ensure IndexedDB is enabled and not cleared

Recovery Options

  • Re-pairing: Devices can be re-paired if needed
  • Backup: Export/import pairing information (planned feature)
  • Manual Discovery: Use local network discovery if pairing fails
This device pairing system provides a robust, secure method for maintaining persistent connections between devices across different networks while ensuring user privacy and security.