{"id":13539798,"url":"https://github.com/lukechampine/jsteg","last_synced_at":"2025-04-05T04:14:08.733Z","repository":{"id":65416643,"uuid":"102983532","full_name":"lukechampine/jsteg","owner":"lukechampine","description":"JPEG steganography","archived":false,"fork":false,"pushed_at":"2023-05-11T03:28:48.000Z","size":209,"stargazers_count":622,"open_issues_count":0,"forks_count":37,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-03-29T03:11:15.200Z","etag":null,"topics":["jpeg","steganography"],"latest_commit_sha":null,"homepage":null,"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/lukechampine.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":"2017-09-09T20:35:42.000Z","updated_at":"2025-03-26T23:04:36.000Z","dependencies_parsed_at":"2024-01-07T01:41:48.208Z","dependency_job_id":"aa191a69-d190-4fa2-96ec-d4d620aaf75d","html_url":"https://github.com/lukechampine/jsteg","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukechampine%2Fjsteg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukechampine%2Fjsteg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukechampine%2Fjsteg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukechampine%2Fjsteg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lukechampine","download_url":"https://codeload.github.com/lukechampine/jsteg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247284952,"owners_count":20913704,"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","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":["jpeg","steganography"],"created_at":"2024-08-01T09:01:32.067Z","updated_at":"2025-04-05T04:14:08.706Z","avatar_url":"https://github.com/lukechampine.png","language":"Go","funding_links":[],"categories":["\u003ca id=\"8f92ead9997a4b68d06a9acf9b01ef63\"\u003e\u003c/a\u003e扫描器\u0026\u0026安全扫描\u0026\u0026App扫描\u0026\u0026漏洞扫描","Go","Tools","\u003ca id=\"132036452bfacf61471e3ea0b7bf7a55\"\u003e\u003c/a\u003e工具","3. [↑](#-content) Cryptography","Steganography"],"sub_categories":["\u003ca id=\"1927ed0a77ff4f176b0b7f7abc551e4a\"\u003e\u003c/a\u003e隐私存储","Steganography","[↑](#-content) 3.2 Steganographic"],"readme":"jsteg\n-----\n\n[![GoDoc](https://godoc.org/lukechampine.com/jsteg?status.svg)](https://godoc.org/lukechampine.com/jsteg)\n[![Go Report Card](http://goreportcard.com/badge/lukechampine.com/jsteg)](https://goreportcard.com/report/lukechampine.com/jsteg)\n\n```\ngo get lukechampine.com/jsteg\n```\n\n`jsteg` is a package for hiding data inside jpeg files, a technique known as\n[steganography](https://en.wikipedia.org/wiki/steganography). This is accomplished\nby copying each bit of the data into the least-significant bits of the image.\nThe amount of data that can be hidden depends on the filesize of the jpeg; it\ntakes about 10-14 bytes of jpeg to store each byte of the hidden data.\n\n## Example\n\n```go\n// open an existing jpeg\nf, _ := os.Open(filename)\nimg, _ := jpeg.Decode(f)\n\n// add hidden data to it\nout, _ := os.Create(outfilename)\ndata := []byte(\"my secret data\")\njsteg.Hide(out, img, data, nil)\n\n// read hidden data:\nhidden, _ := jsteg.Reveal(out)\n```\n\nNote that the data is not demarcated in any way; the caller is responsible for\ndetermining which bytes of `hidden` it cares about. The easiest way to do this\nis to prepend the data with its length.\n\nA `jsteg` command is included, providing a simple wrapper around the\nfunctions of this package. It can hide and reveal data in jpeg files and\nsupports input/output redirection. It automatically handles length prefixes\nand uses a magic header to identify jpegs that were produced by `jsteg`.\n\nA more narrowly-focused command named `slink` is also included. `slink` embeds\na public key in a jpeg, and makes it easy to sign data and verify signatures\nusing keypairs derived from password strings. See [cmd/slink](cmd/slink) for a\nfull description.\n\nBinaries for both commands can be found [here](https://github.com/lukechampine/jsteg/releases).\n\n---\n\nThis package reuses a significant amount of code from the image/jpeg package.\nThe BSD-style license that governs the use of that code can be found in the\n`go_LICENSE` file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukechampine%2Fjsteg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flukechampine%2Fjsteg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukechampine%2Fjsteg/lists"}