With a password, the file name, type and contents are encrypted with a key derived from it (PBKDF2 + AES-256-GCM). The password never leaves your browser. Lost password = lost file.