{"id":17255563,"url":"https://github.com/ffmathy/fluffyspoon.security","last_synced_at":"2025-03-26T08:16:54.250Z","repository":{"id":48689451,"uuid":"122861057","full_name":"ffMathy/FluffySpoon.Security","owner":"ffMathy","description":"Provides mechanisms for hashing.","archived":false,"fork":false,"pushed_at":"2023-03-24T22:45:31.000Z","size":28,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-22T22:32:48.219Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/ffMathy.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}},"created_at":"2018-02-25T17:56:52.000Z","updated_at":"2021-07-14T04:47:08.000Z","dependencies_parsed_at":"2022-09-07T18:11:55.625Z","dependency_job_id":"a6a0320e-cc87-4d76-b1a2-3065f29f7ffc","html_url":"https://github.com/ffMathy/FluffySpoon.Security","commit_stats":{"total_commits":47,"total_committers":3,"mean_commits":"15.666666666666666","dds":0.276595744680851,"last_synced_commit":"78771e568e0bb2a791496d39f5e3ed99322e55e2"},"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ffMathy%2FFluffySpoon.Security","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ffMathy%2FFluffySpoon.Security/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ffMathy%2FFluffySpoon.Security/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ffMathy%2FFluffySpoon.Security/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ffMathy","download_url":"https://codeload.github.com/ffMathy/FluffySpoon.Security/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245615010,"owners_count":20644376,"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-15T07:12:03.220Z","updated_at":"2025-03-26T08:16:54.219Z","avatar_url":"https://github.com/ffMathy.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FluffySpoon.Security\nProvides mechanisms for hashing.\n\n*Currently uses Argon2 - the best password hashing algorithm as of the 8th of November, 2018.*\n\nThis package will always be updated to contain the most secure hashing implementation. Since it prefixes the method used in the hash ([which is considered secure](https://security.stackexchange.com/questions/197236/is-it-bad-practice-to-prefix-my-hash-with-the-algorithm-used)), it can automatically verify hashes that were generated with older implementations of the library.\n\n## Setup\n```csharp\nservices.AddFluffySpoonHasher(/* optional pepper can be provided here */);\n```\n\n## Use\nInject an `IHasher` into your class. In the following example, the `IHasher` instance is in the variable `hasher`.\n\n```csharp\nvar passwordToHash = \"my_totally_safe_password\";\n\nvar hash = hasher.Generate(passwordToHash);\n\n//isHashValid will now be true since the hash corresponds to the entered password.\nvar isHashValid = hasher.Verify(hash, passwordToHash);\n\n//isHashUpToDate will be true since \"hash\" was created using the latest hashing mechanism. useful for migrating old hashes.\nvar isHashUpToDate = hasher.IsHashUpToDate(hash);\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fffmathy%2Ffluffyspoon.security","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fffmathy%2Ffluffyspoon.security","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fffmathy%2Ffluffyspoon.security/lists"}