{"id":18436362,"url":"https://github.com/stevehjohn/security","last_synced_at":"2026-04-28T17:05:02.870Z","repository":{"id":77855180,"uuid":"183465494","full_name":"stevehjohn/Security","owner":"stevehjohn","description":"Various useful classes for information security","archived":false,"fork":false,"pushed_at":"2025-11-30T18:36:53.000Z","size":81,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-02T17:36:32.007Z","etag":null,"topics":["cryptography","csharp","dotnet","shamir"],"latest_commit_sha":null,"homepage":"","language":"C#","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/stevehjohn.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-25T15:50:55.000Z","updated_at":"2025-11-30T18:36:56.000Z","dependencies_parsed_at":"2024-01-13T16:08:26.091Z","dependency_job_id":"a802361f-308d-4d73-81c0-a00fb388b74d","html_url":"https://github.com/stevehjohn/Security","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/stevehjohn/Security","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevehjohn%2FSecurity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevehjohn%2FSecurity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevehjohn%2FSecurity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevehjohn%2FSecurity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stevehjohn","download_url":"https://codeload.github.com/stevehjohn/Security/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevehjohn%2FSecurity/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32390124,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T14:34:11.604Z","status":"ssl_error","status_checked_at":"2026-04-28T14:32:37.009Z","response_time":56,"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":["cryptography","csharp","dotnet","shamir"],"created_at":"2024-11-06T06:11:20.210Z","updated_at":"2026-04-28T17:05:02.825Z","avatar_url":"https://github.com/stevehjohn.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Security\n\nVarious useful security classes.\n\n## Security.Console\n\nWrapper to execute the various functions.\n\n### Splitting a secret\n\nChange directory to `src/Security.Console`, then:\n\n```\n\u003e dotnet run ToBase64 -t \"This is a secret\"\n\nOriginal text: This is a secret\n\nBase 64: VABoAGkAcwAgAGkAcwAgAGEAIABzAGUAYwByAGUAdAA=\n\n\u003e dotnet run SplitSecret -s VABoAGkAcwAgAGkAcwAgAGEAIABzAGUAYwByAGUAdAA= --Parts 6 -m 3\n\n 1: wbHdhyMsmB0tFR0TN/ekJ/mL9v4nerTU9iIRDSsV70tX\n 2: Ys5m0fnyge8q+ovn3F/O0OY7L4LgsJ50iMEy5RIwAqGt\n 3: 8yu7Ptq3GYEHz5ad69tq1x/R2VzHuSrFfoAjmjlA7Z76\n 4: FEz96iMAh0uPef+dXdfFDuu3E2tVh7787Lwk+C8tNV9N\n 5: FakgBQBFHyWiTOLnalNhCRJd5bVyjgpNGv01hwRd2mAa\n 6: ttabU9qbBtelo3QTgfsL/g3tPMm1RCDtZB4Wbz14N4rg\n\nAny 3 of these can be combined to obtain the original secret.\n\n\u003e dotnet run Combine --Parts 3\n\n  Please enter part 1\n  \u003e wbHdhyMsmB0tFR0TN/ekJ/mL9v4nerTU9iIRDSsV70tX\n  \u003e ********************************************\n  Please enter part 2\n  \u003e 8yu7Ptq3GYEHz5ad69tq1x/R2VzHuSrFfoAjmjlA7Z76\n  \u003e ********************************************\n  Please enter part 3\n  \u003e FakgBQBFHyWiTOLnalNhCRJd5bVyjgpNGv01hwRd2mAa\n  \u003e ********************************************\n\n  Secret: VABoAGkAcwAgAGkAcwAgAGEAIABzAGUAYwByAGUAdAA=\n  \n\u003e dotnet run FromBase64 -d VABoAGkAcwAgAGkAcwAgAGEAIABzAGUAYwByAGUAdAA=\n\nOriginal text: This is a secret\n```\n\n## Security.Secrets.ShamirSecretShare\n\nSplit a secret piece of information into x parts, requiring y pieces to obtain the original message. \nFor example, you may have a password for an operation but require *any* 3 of 5 particular members of staff to ok it.\n\n## Security.Crypto.SymmetricCipher\n\nConvenience wrapper to use BouncyCastle GCM block cipher.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevehjohn%2Fsecurity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstevehjohn%2Fsecurity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevehjohn%2Fsecurity/lists"}