{"id":26584108,"url":"https://github.com/ntdls/ntdls.permafrost","last_synced_at":"2026-03-06T04:03:44.866Z","repository":{"id":205162906,"uuid":"713575671","full_name":"NTDLS/NTDLS.Permafrost","owner":"NTDLS","description":"The NetworkDLS original symmetric cipher algorithm ported to C#.","archived":false,"fork":false,"pushed_at":"2025-11-14T02:54:38.000Z","size":838,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-11-14T03:10:50.347Z","etag":null,"topics":["cryptography","library","nuget","showcase"],"latest_commit_sha":null,"homepage":"https://networkdls.com/Entity/ntdls-permafrost","language":"C#","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/NTDLS.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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-11-02T19:57:41.000Z","updated_at":"2025-11-14T02:54:36.000Z","dependencies_parsed_at":"2023-11-08T03:59:30.819Z","dependency_job_id":"57a5acc5-c178-4e17-aa91-8947a5e24b3d","html_url":"https://github.com/NTDLS/NTDLS.Permafrost","commit_stats":null,"previous_names":["ntdls/ntdls.nasccl","ntdls/ntdls.permafrost"],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/NTDLS/NTDLS.Permafrost","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NTDLS%2FNTDLS.Permafrost","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NTDLS%2FNTDLS.Permafrost/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NTDLS%2FNTDLS.Permafrost/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NTDLS%2FNTDLS.Permafrost/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NTDLS","download_url":"https://codeload.github.com/NTDLS/NTDLS.Permafrost/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NTDLS%2FNTDLS.Permafrost/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30161345,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T22:39:40.138Z","status":"online","status_checked_at":"2026-03-06T02:00:08.268Z","response_time":250,"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":["cryptography","library","nuget","showcase"],"created_at":"2025-03-23T09:18:41.460Z","updated_at":"2026-03-06T04:03:44.860Z","avatar_url":"https://github.com/NTDLS.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NTDLS.Permafrost\r\n\r\n📦 Be sure to check out the NuGet package: https://www.nuget.org/packages/NTDLS.Permafrost\r\n\r\nPermafrost encryption library, derived from NASCCL. The NetworkDLS Algorithmic Symmetric Cipher Cryptography Library.\r\n\r\n## Simple string encryption example:\r\n\r\n```\r\nusing var permafrost = new PermafrostCipher(\"ThisIsTheP@$$w0Rd!\", PermafrostMode.AutoReset);\r\nvar cipherBytes = permafrost.Cipher(\"This is some text that I would like to keep safe if that is ok with you? Oh, it is? Good!\");\r\nvar decipherBytes = permafrost.Cipher(cipherBytes);\r\nstring decipheredText = Encoding.UTF8.GetString(decipherBytes);\r\n```\r\n\r\n## Streaming example with chaining.\r\n```\r\npublic static void EncryptAndCompressFile(string inputPath, string outputPath)\r\n{\r\n    byte[] buffer = new byte[8192];\r\n\r\n    using var input = File.OpenRead(inputPath);\r\n    using var output = File.Create(outputPath);\r\n    using var permafrost = new PermafrostStream(output, \"ThisIsTheP@$$w0Rd!\");\r\n    using var gzip = new GZipStream(permafrost, CompressionLevel.SmallestSize);\r\n\r\n    int bytesRead;\r\n    while ((bytesRead = input.Read(buffer, 0, buffer.Length)) \u003e 0)\r\n    {\r\n        gzip.Write(buffer, 0, bytesRead);\r\n    }\r\n}\r\n\r\npublic static void DecryptAndDecompressFile(string inputPath, string outputPath)\r\n{\r\n    byte[] buffer = new byte[8192];\r\n\r\n    using var input = File.OpenRead(inputPath);\r\n    using var permafrost = new PermafrostStream(input, \"ThisIsTheP@$$w0Rd!\");\r\n    using var gzip = new GZipStream(permafrost, CompressionMode.Decompress);\r\n    using var output = File.Create(outputPath);\r\n\r\n    int bytesRead;\r\n    while ((bytesRead = gzip.Read(buffer, 0, buffer.Length)) \u003e 0)\r\n    {\r\n        output.Write(buffer, 0, bytesRead);\r\n    }\r\n}\r\n```\r\n\r\n## Visulation of 1MB NULL values.\r\n![TestOutput txt](https://github.com/user-attachments/assets/92b152c0-0cb5-4ecd-bf24-a59c431351f6)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fntdls%2Fntdls.permafrost","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fntdls%2Fntdls.permafrost","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fntdls%2Fntdls.permafrost/lists"}