PICO WEB UPLOADER
=================
Update a Raspberry Pi Pico (RP2350 WebMite, MMBasic V7) from a web page: send web files and whole new programs from a browser,
with checksums, a backup, one-button rollback, and optional ENCRYPTED program files.

FOLDERS
  1_Working_Example/        A complete, tested uploader. Put the program and the page on a Pico and it works.
                            Includes a 100 KB test program for trying big installs.
  2_Minimum_Starting_Base/  ONLY the updating code (no WiFi / web-server code), as a parts list to merge into your own web program.
                            (Never run on its own - see its README.)
  3_Encryption/             The PC tool that makes encrypted program files, sample keys and files, and a detailed description of how
                            the encryption works from end to end.

QUICK START (details in 1_Working_Example/README.txt)
  1. Put update_pico_Ver3.bas on the Pico and RUN it. Put upload.html on the Pico (exactly that name).
  2. Browse to http://<the Pico's IP>/
  3. Choose a file and press UPLOAD. For a program, then press INSTALL. ROLLBACK goes back.

WHAT HAS BEEN TESTED ON A REAL PICO (RP2350A WebMite, MMBasic 7.00.00RC7)
  Web files; programs of 25 KB and 100 KB (checksum, install, rollback, cleanup); the fast upload (100 KB in about 39 s);
  encrypted installs (right key; wrong key refused at once; a damaged file stopped after decrypting).
NOT TESTED ON A PICO
  The 2_Minimum_Starting_Base file (cut from the working program, checked only for missing names).
  Install refusals for a missing "Code Good" line and a failed backup (covered by simulation only).

SECURITY IN ONE PARAGRAPH
  This standalone version has NO LOGIN: anyone who can reach the Pico's web page can upload to it. Put it behind your own login
  before using it anywhere but a private test network. Encryption protects the update FILES you hand out (they are unreadable without
  the Pico's key and only install on the Pico that holds that key). It does NOT protect a program on a Pico from someone who owns
  that Pico: running BASIC is readable source and the key is a file on the Pico. See 3_Encryption/ENCRYPTION_HOW_IT_WORKS.txt.
