{"id":14384482,"url":"https://github.com/mimadottech/ipfs-crypt","last_synced_at":"2026-05-18T00:04:41.462Z","repository":{"id":57125984,"uuid":"287677147","full_name":"mimadottech/ipfs-crypt","owner":"mimadottech","description":"Add files to IPFS with encryption","archived":false,"fork":false,"pushed_at":"2020-08-15T10:14:28.000Z","size":16,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-30T07:20:55.896Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/mimadottech.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":"2020-08-15T04:28:40.000Z","updated_at":"2022-02-15T17:37:50.000Z","dependencies_parsed_at":"2022-08-31T17:02:08.657Z","dependency_job_id":null,"html_url":"https://github.com/mimadottech/ipfs-crypt","commit_stats":null,"previous_names":["kyccrypto/ipfs-crypt"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mimadottech/ipfs-crypt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mimadottech%2Fipfs-crypt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mimadottech%2Fipfs-crypt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mimadottech%2Fipfs-crypt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mimadottech%2Fipfs-crypt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mimadottech","download_url":"https://codeload.github.com/mimadottech/ipfs-crypt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mimadottech%2Fipfs-crypt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33160167,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T22:39:12.733Z","status":"ssl_error","status_checked_at":"2026-05-17T22:39:10.741Z","response_time":107,"last_error":"SSL_read: 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":[],"created_at":"2024-08-28T18:01:25.243Z","updated_at":"2026-05-18T00:04:41.449Z","avatar_url":"https://github.com/mimadottech.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# ipfs-crypt\n\n\u003e Add file to ipfs with encryption and cat back decrypted file.\n\n- aes-256-ctr encryption algorithm\n- custom Initialization Vector for each encrypted value\n- HMAC/constant time compare to prevent tampering\n\n[![NPM Version][npm-image]][npm-url]\n\n## Install\n\n```bash\nnpm i @kyc-crypto/ipfs-crypt\n```\n\n## Usage Example\n\n```javascript\nconst crypto = require('crypto')\nconst { IpfsCrypt } = require('@kyc-crypto/ipfs-crypt')\n\nconst key = crypto.randomBytes(32).toString('hex');\nconst hmacKey = crypto.randomBytes(32).toString('hex');\n\n// initialize IpfsCrypt\nconst ipfsCrypt = new IpfsCrypt(\n  {\n    key,\n    hmacKey,\n    host: 'ipfs.infura.io',\n    port: '5001',\n    protocol: 'https'\n  }\n);\n\n// Add and cat file\n(async () =\u003e {\n  try {\n    console.log('uploading file...')\n\n    // Adding file to ipfs\n    const file = await ipfsCrypt.add(fs.readFileSync('./document.png'))\n    console.log('file', file)\n\n    // Get decrypted buffer\n    const decryptedBuffer = await ipfsCrypt.cat(file.path)\n\n    // Write buffer to file\n    fs.writeFileSync('./document.dec.png', decryptedBuffer)\n\n    console.log('done!')\n  } catch (error) {\n    console.log(error)\n  }\n})()\n```\n**Package also exports ipfs-http-client**\n```javascript\nconst { IpfsHttpClient } = require('@kyc-crypto/ipfs-crypt')\n```\n\n\n## License\n\n[MIT](https://github.com/KYCCrypto/ipfs-crypt/blob/master/LICENSE)\n\n[npm-image]: https://img.shields.io/npm/v/@kyc-crypto/ipfs-crypt.svg?style=for-the-badge\u0026logo=npm\u0026color=32CD32\n[npm-url]: https://www.npmjs.com/package/@kyc-crypto/ipfs-crypt","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmimadottech%2Fipfs-crypt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmimadottech%2Fipfs-crypt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmimadottech%2Fipfs-crypt/lists"}