{"id":23272663,"url":"https://github.com/whs/ipfs-encrypted-share","last_synced_at":"2025-08-21T04:31:30.637Z","repository":{"id":146621043,"uuid":"141907720","full_name":"whs/ipfs-encrypted-share","owner":"whs","description":"IPFS Encrypted Share","archived":false,"fork":false,"pushed_at":"2018-08-12T03:34:55.000Z","size":104,"stargazers_count":23,"open_issues_count":0,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-08-17T08:41:44.641Z","etag":null,"topics":["ipfs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/whs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-07-22T15:31:14.000Z","updated_at":"2024-10-17T08:41:51.000Z","dependencies_parsed_at":"2023-04-11T05:02:05.019Z","dependency_job_id":null,"html_url":"https://github.com/whs/ipfs-encrypted-share","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/whs/ipfs-encrypted-share","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whs%2Fipfs-encrypted-share","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whs%2Fipfs-encrypted-share/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whs%2Fipfs-encrypted-share/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whs%2Fipfs-encrypted-share/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/whs","download_url":"https://codeload.github.com/whs/ipfs-encrypted-share/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whs%2Fipfs-encrypted-share/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271425133,"owners_count":24757418,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-21T02:00:08.990Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ipfs"],"created_at":"2024-12-19T19:18:26.129Z","updated_at":"2025-08-21T04:31:30.366Z","avatar_url":"https://github.com/whs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IPFS Encrypted Share\n\nCurrent version: [1.0.0](https://ipfs.io/ipfs/QmYQLkWNYwXmqjTaP15kbfwzPGWEcBejAfAJMnmKmXwLFZ/)\n\nEncrypted file uploader for IPFS, similar to [Mega](https://mega.co.nz/)\n\n## Security\n\nThis use libsodium, so it should be quite safe to use. However, I'm not a cryptography expert and this code is not audited, so use it at your own risk.\n\n## Technical details\n\n### Encryption\n\nFiles are encrypted with [libsodium stream encryption](https://download.libsodium.org/doc/secret-key_cryptography/secretstream.html). The encryption key are randomly generated every time and stored as urlsafe unpadded base64 in URL fragment (not transmitted to gateway or IPFS).\n\n### Metadata\n\nFile metadata is stored at /metadata.json. It contains 2 keys:\n\n-   **header**: Stream header (from `crypto_secretstream_xchacha20poly1305_init_push`), base64 encoded without padding.\n-   **encryptedMetadata**: Encrypted metadata, base64 encoded without padding.\n\nThe encrypted metadata is the first message in the stream. It is a JSON with the following keys:\n\n-   **filename**: Original filename\n-   **size**: File size in bytes\n-   **pieces**: Number of file pieces\n\nThis message has the tag `crypto_secretstream_xchacha20poly1305_TAG_FINAL`.\n\n### File pieces\n\nThe file are splitted to pieces, each 5MB in size. (limited by libsodium.js heap size) They are encrypted and stored at /pieces/`chunkId`. ChunkID starts at 0 to `encryptedMetadata.pieces - 1`. File pieces share the same encryption stream with the metadata.\n\nThe final piece has the tag `crypto_secretstream_xchacha20poly1305_TAG_FINAL`. All other pieces has the tag `0`.\n\n## License\n\nLicensed under the [MIT License](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhs%2Fipfs-encrypted-share","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwhs%2Fipfs-encrypted-share","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhs%2Fipfs-encrypted-share/lists"}