{"id":21664717,"url":"https://github.com/swift-libp2p/swift-libp2p-noise","last_synced_at":"2025-10-07T03:24:10.438Z","repository":{"id":122482376,"uuid":"487757126","full_name":"swift-libp2p/swift-libp2p-noise","owner":"swift-libp2p","description":"A LibP2P Stream Security protocol","archived":false,"fork":false,"pushed_at":"2025-05-14T16:32:44.000Z","size":64,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-19T21:21:32.566Z","etag":null,"topics":["libp2p","libp2p-security","swift"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/swift-libp2p.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-05-02T07:38:42.000Z","updated_at":"2025-05-14T16:29:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"d42695a0-990d-4269-91f4-6faafe6459ae","html_url":"https://github.com/swift-libp2p/swift-libp2p-noise","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/swift-libp2p/swift-libp2p-noise","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swift-libp2p%2Fswift-libp2p-noise","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swift-libp2p%2Fswift-libp2p-noise/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swift-libp2p%2Fswift-libp2p-noise/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swift-libp2p%2Fswift-libp2p-noise/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/swift-libp2p","download_url":"https://codeload.github.com/swift-libp2p/swift-libp2p-noise/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swift-libp2p%2Fswift-libp2p-noise/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278714056,"owners_count":26033010,"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-10-07T02:00:06.786Z","response_time":59,"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":["libp2p","libp2p-security","swift"],"created_at":"2024-11-25T10:42:29.433Z","updated_at":"2025-10-07T03:24:10.422Z","avatar_url":"https://github.com/swift-libp2p.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LibP2PNoise\n\n[![](https://img.shields.io/badge/made%20by-Breth-blue.svg?style=flat-square)](https://breth.app)\n[![](https://img.shields.io/badge/project-libp2p-yellow.svg?style=flat-square)](http://libp2p.io/)\n[![Swift Package Manager compatible](https://img.shields.io/badge/SPM-compatible-blue.svg?style=flat-square)](https://github.com/apple/swift-package-manager)\n![Build \u0026 Test (macos and linux)](https://github.com/swift-libp2p/swift-libp2p-noise/actions/workflows/build+test.yml/badge.svg)\n\n\u003e A LibP2P Stream Security protocol\n\n## Table of Contents\n\n- [Overview](#overview)\n- [Install](#install)\n- [Usage](#usage)\n  - [Example](#example)\n  - [API](#api)\n- [Contributing](#contributing)\n- [Credits](#credits)\n- [License](#license)\n\n## Overview\nNoise is a connection security protocol. It provides a secure transport channel for swift-libp2p based on the Noise Protocol Framework. Following an initial plaintext handshake, all data exchanged between peers using swift-libp2p-noise is encrypted and protected from eavesdropping.\n\n### ⚠️ Warning\nThis package has **NOT** been extensively tested in real world applications and **should NOT be used in production environments**. Although the actual cryptography is handled by swift-crypto, the handshake logic could, and probably does, contain a myriad of bugs. Please feel free to look over the code and submit improvements where you see fit.  \n\n#### Note:\n- For more information check out the [LibP2P Noise Spec](https://github.com/libp2p/specs/tree/master/noise) \n- For more information check out the [Noise Protocol Spec](https://noiseprotocol.org/noise.html)\n\n## Install\n\nInclude the following dependency in your Package.swift file\n``` swift\nlet package = Package(\n    ...\n    dependencies: [\n        ...\n        .package(name: \"LibP2PNoise\", url: \"https://github.com/swift-libp2p/swift-libp2p-noise.git\", .upToNextMajor(from: \"0.1.0\"))\n    ],\n    ...\n        .target(\n            ...\n            dependencies: [\n                ...\n                .product(name: \"LibP2PNoise\", package: \"swift-libp2p-noise\"),\n            ]),\n    ...\n)\n```\n\n## Usage\n\n### Example \n``` swift\nimport LibP2PNoise\n\n/// Tell libp2p that it can use noise to secure connections...\napp.security.use( .noise )\n\n```\n\n### API\n``` swift\nNot Applicable\n```\n\n## Contributing\n\nContributions are welcomed! This code is very much a proof of concept. I can guarantee you there's a better / safer way to accomplish the same results. Any suggestions, improvements, or even just critiques, are welcome! \n\nLet's make this code better together! 🤝\n\n\n## Credits\n\n- [LibP2P Noise Spec](https://github.com/libp2p/specs/tree/master/noise) \n\n## License\n\n[MIT](LICENSE) © 2022 Breth Inc.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswift-libp2p%2Fswift-libp2p-noise","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswift-libp2p%2Fswift-libp2p-noise","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswift-libp2p%2Fswift-libp2p-noise/lists"}