{"id":16697926,"url":"https://github.com/richfitz/stegasaur","last_synced_at":"2025-03-21T19:32:21.764Z","repository":{"id":33711354,"uuid":"37364821","full_name":"richfitz/stegasaur","owner":"richfitz","description":":sauropod: Steganography for R","archived":false,"fork":false,"pushed_at":"2021-02-08T15:58:33.000Z","size":148,"stargazers_count":33,"open_issues_count":2,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-01T09:07:53.721Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://richfitz.github.io/stegasaur/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/richfitz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-13T08:57:11.000Z","updated_at":"2023-03-06T09:55:57.000Z","dependencies_parsed_at":"2022-09-02T22:10:53.230Z","dependency_job_id":null,"html_url":"https://github.com/richfitz/stegasaur","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richfitz%2Fstegasaur","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richfitz%2Fstegasaur/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richfitz%2Fstegasaur/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richfitz%2Fstegasaur/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/richfitz","download_url":"https://codeload.github.com/richfitz/stegasaur/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244153715,"owners_count":20407032,"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":[],"created_at":"2024-10-12T17:49:45.939Z","updated_at":"2025-03-21T19:32:21.451Z","avatar_url":"https://github.com/richfitz.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"# stegasaur\n\n\u003c!-- badges: start --\u003e\n[![Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public.](https://www.repostatus.org/badges/latest/wip.svg)](https://www.repostatus.org/#wip)\n[![R build status](https://github.com/richfitz/stegasaur/workflows/R-CMD-check/badge.svg)](https://github.com/richfitz/stegasaur/actions)\n[![codecov.io](https://codecov.io/github/richfitz/stegasaur/coverage.svg?branch=master)](https://codecov.io/github/richfitz/stegasaur?branch=master)\n[![CodeFactor](https://www.codefactor.io/repository/github/richfitz/stegasaur/badge)](https://www.codefactor.io/repository/github/richfitz/stegasaur)\n![works?](https://img.shields.io/badge/works-on%20my%20machine-pink)\n\u003c!-- badges: end --\u003e\n\nSteganography for R\n\n![stegosaur](https://github.com/richfitz/stegasaur/raw/master/inst/stegosaurus.png)\n\nThe aim is to be able to encode arbitrary R objects in cat pictures:\n\n```r\ntxt \u003c- \"this is a secret message\"\nkitten \u003c- stegasaur::kitten(200, 300)\nstegasaur::encode(\"this is a secret message\", kitten, \"kitten.png\")\n```\n\nThe file `kitten.png` in the working directory now contains both an adorable kitten and a secret message.  The message can be decoded:\n\n```r\nstegasaur::decode(\"kitten.png\")\n# [1] \"this is a secret message\"\n```\n\nThis works with arbitrary objects, too\n\n```r\nx \u003c- runif(10)\nstegasaur::encode(x, kitten, \"kitten.png\")\nstegasaur::decode(\"kitten.png\")\n# [1] 0.8257649 0.2250323 0.1598864 0.4999668 0.6165416 0.6676501 0.8632083\n# [8] 0.6462997 0.1772859 0.2864177\n```\n\nAn additional helper function allows quick encoding in images, when one would like to encode the plot code with the figure:\n\n```{r}\nstegasaur::figasaur({plot(sample(100))}, \"randomplot.png\")\n```\n\nA [`knitr`](https://yihui.name/knitr/) \"hook\" (`hook_figasaur`) is also included, so one may automatically encode the generating code with plots throughout a `knitr` document. See `knitr_example.Rmd` in the `inst` directory for an example.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frichfitz%2Fstegasaur","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frichfitz%2Fstegasaur","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frichfitz%2Fstegasaur/lists"}