{"id":39165695,"url":"https://github.com/smitajit/fsblob","last_synced_at":"2026-01-17T22:11:49.179Z","repository":{"id":57631312,"uuid":"409906138","full_name":"smitajit/fsblob","owner":"smitajit","description":"File System blob store with metadata, encryption, integrity check support","archived":false,"fork":false,"pushed_at":"2021-09-24T09:39:05.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-20T13:29:48.510Z","etag":null,"topics":["blob","blob-storage","encyrption","filesystem","golang","golang-library","integrity","integrity-checker","metadata"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"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/smitajit.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}},"created_at":"2021-09-24T09:25:37.000Z","updated_at":"2021-09-24T11:01:49.000Z","dependencies_parsed_at":"2022-09-16T16:47:01.850Z","dependency_job_id":null,"html_url":"https://github.com/smitajit/fsblob","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/smitajit/fsblob","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smitajit%2Ffsblob","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smitajit%2Ffsblob/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smitajit%2Ffsblob/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smitajit%2Ffsblob/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smitajit","download_url":"https://codeload.github.com/smitajit/fsblob/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smitajit%2Ffsblob/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28519771,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T22:11:28.393Z","status":"ssl_error","status_checked_at":"2026-01-17T22:11:27.841Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["blob","blob-storage","encyrption","filesystem","golang","golang-library","integrity","integrity-checker","metadata"],"created_at":"2026-01-17T22:11:49.121Z","updated_at":"2026-01-17T22:11:49.173Z","avatar_url":"https://github.com/smitajit.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fsblob [![Go Report Card](https://goreportcard.com/badge/github.com/smitajit/fsblob)](https://goreportcard.com/report/github.com/smitajit/fsblob)[![Go Reference](https://pkg.go.dev/badge/github.com/smitajit/fsblob.svg)](https://pkg.go.dev/github.com/smitajit/fsblob)\nFile System based blob store with encryption,metadata and integrity check support\n\n## Features\n### Reader and Writer\nBlob provides io.Reader and io.Writer interfaces to read and write binary data\n```go\n\tw, err := blob.Writer()\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tr, err := blob.Reader()\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n```\n### Metadata\nBlob provides APIs to store and retrieve metadata of the blob\n``` go\n\tif err := blob.Put(\"key\", \"value\"); err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tif v, err := blob.Get(\"key\"); err != nil || v != \"value\" {\n\t\tlog.Fatal(\"value not found\")\n\t}\n\n\tif err := blob.PutAll(map[string]string{\n\t\t\"key-1\": \"value-1\",\n\t\t\"key-2\": \"value-2\",\n\t}); err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tm, err :=  blob.GetAll() \n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n```\n### Encryption (dual key encryption)\nBlob content along with metadata can be encrypted by providing a primary encryption key.\nFor each blob a random secondary encryption (aes256 bit) key is created to encrypt the blob content.\nSecondary encryption key along with the metadata is encrypted with the primary cipher.\n```go\n\tkey := make([]byte, 32)\n\tif _, err := crand.Read(key); err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\taead, err := chacha20poly1305.New(key)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tbucket, err := fsblob.NewBucket(path, aead)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n```\n### Integrity\nBlobs can be sealed and verified. Once sealed, a HMAC sum of the blob content is calculated and stored in the metadata.\nUpon verification, the sum is verified against the blob content.\n``` go\n\n\t// seal the blob\n\tif err := blob.Seal(); err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\t// verify the glob\n\tif err := blob.Verify(); err != nil {\n\t\tlog.Fatal(\"blob integrity compromised. error: %v\", err)\n\t}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmitajit%2Ffsblob","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmitajit%2Ffsblob","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmitajit%2Ffsblob/lists"}