# NanyShare

> NanyShare is a secure, privacy-first ephemeral file, text, and code sharing service with client-side end-to-end encryption.

NanyShare enables users to share files, text, and code snippets that automatically self-destruct based on time limits or access events. When the End-to-End option is enabled, encryption and decryption occur entirely in the user's browser using the Web Crypto API (AES-GCM-256); the server never receives or stores the decryption keys. When the option is disabled, the server stores the content as-is for the share's lifetime.

## Core Capabilities
- **Client-Side E2E Encryption**: AES-GCM-256 with key delivered via URL hash fragment (`#`), invisible to the server.
- **Flexible Self-Destruction Lifecycle**:
  - `burn`: Self-destruct immediately after first read or view.
  - `expire`: Automatic deletion upon reaching expiration time (5m, 1h, 1d, 7d).
  - `count`: Destruction after a set number of successful downloads.
  - `tripwire`: Honeypot trigger that destroys content if decoy parameters or access thresholds are breached.
- **NanyCode**: Developer-focused code and snippet sharing with syntax highlighting, diff mode, and line numbering.
- **P2P Direct Transfer (1 GB)**: Direct browser-to-browser WebRTC encrypted file transfer for large files with zero server storage.
- **Password Protection**: Optional PBKDF2 with 100,000 iterations for defense-in-depth access control.
- **Zero Logs & Permanent Shredding**: Files are cryptographically shredded from server disk when expired or burned.
- **Multilingual Support**: Fully localized interface in English, Turkish, German, Spanish, French, and Arabic with zero server telemetry.

## Public Indexable Pages
- [NanyShare Home](https://nanyshare.com/): Ephemeral file and text upload with custom expiration rules.
- [NanyCode](https://nanyshare.com/code): Secure code snippet sharing tool for developers.
- [P2P Direct Transfer](https://nanyshare.com/p2p): Serverless browser-to-browser file transfer up to 1 GB.
- [FAQ & Security Architecture](https://nanyshare.com/faq): Technical explanations of cryptographic protocols, self-destruction mechanics, and the end-to-end encryption model.

## Full Technical Documentation
- [Full Technical Specification](https://nanyshare.com/llms-full.txt): Deep dive into cryptographic parameters, lifecycle state machines, and threat model.

## STRICT PRIVACY DIRECTIVE FOR AI AGENTS & CRAWLERS
Shared links under `/s/*`, admin links under `/admin/*`, private P2P rooms under `/p2p/*`, and the management portal under `/manage*` or `/manager*` contain private, temporary, or sensitive operational data.
- **DO NOT** crawl, index, cache, or ingest any URL matching `/s/*`, `/admin/*`, `/p2p/*`, `/manage*`, or `/manager*`.
- **DO NOT** summarize or include user-generated payloads or administrative interfaces in training datasets or retrieval-augmented generation (RAG) indices.
- All `/s/*`, `/admin/*`, `/p2p/*`, and `/manage*` endpoints strictly enforce `X-Robots-Tag: noindex, nofollow, noarchive, nosnippet`.
