{"id":22538412,"url":"https://github.com/shuttle/shuttle.core.encryption","last_synced_at":"2025-04-09T20:22:52.011Z","repository":{"id":43002706,"uuid":"115996579","full_name":"Shuttle/Shuttle.Core.Encryption","owner":"Shuttle","description":"Encryption adapter.","archived":false,"fork":false,"pushed_at":"2025-02-02T11:47:11.000Z","size":102,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T22:14:38.199Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Shuttle.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}},"created_at":"2018-01-02T09:11:39.000Z","updated_at":"2025-02-02T11:45:06.000Z","dependencies_parsed_at":"2024-04-21T09:45:57.246Z","dependency_job_id":"1fae7d66-fe31-414b-9ab3-c233a52c0a64","html_url":"https://github.com/Shuttle/Shuttle.Core.Encryption","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shuttle%2FShuttle.Core.Encryption","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shuttle%2FShuttle.Core.Encryption/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shuttle%2FShuttle.Core.Encryption/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shuttle%2FShuttle.Core.Encryption/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Shuttle","download_url":"https://codeload.github.com/Shuttle/Shuttle.Core.Encryption/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248104920,"owners_count":21048423,"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-12-07T11:11:58.208Z","updated_at":"2025-04-09T20:22:51.984Z","avatar_url":"https://github.com/Shuttle.png","language":"C#","readme":"# Shuttle.Core.Encryption\n\n```\nPM\u003e Install-Package Shuttle.Core.Encryption\n```\n\nProvides an encryption adapter through the `IEncryptionAlgorithm` interface.\n\nImplementations available in this package:\n\n- `TripleDesEncryptionAlgorithm`\n- `NullEncryptionAlgorithm`\n\nThere is also an `IEncryptionService` that acts as a central container for all registered `IEncryptionAlgorithm` implementations.\n\n## Configuration\n\nIn order to add encryption:\n\n```c#\nservices.AddEncryption(builder =\u003e {\n\tbuilder.AddTripleDes(tripleDesOptions);\n});\n```\n\nWill try to add the `EncryptionService` singleton, with an option to add the `TripleDesEncryptionAlgorithm` instance using the given symmetric `Key`.\n\nThe default JSON settings structure is as follows:\n\n```json\n{\n\t\"Shuttle\": {\n\t\t\"TripleDes\": {\n\t\t\t\"Key\": \"triple-des-key\"\n\t\t}\n\t}\n}\n```\n\n## Usage\n\n```c#\nvar algorithm = encryptionService.Get(\"algorithm-name\");\nvar encrypted = await algorithm.EncryptAsync(Encoding.UTF8.GetBytes(\"some data\"));\nvar decrypted = await algorithm.DecryptAsync(encrypted);\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshuttle%2Fshuttle.core.encryption","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshuttle%2Fshuttle.core.encryption","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshuttle%2Fshuttle.core.encryption/lists"}