{"id":22065721,"url":"https://github.com/karenpayneoregon/sql-server-password-secure","last_synced_at":"2026-04-04T20:33:10.521Z","repository":{"id":110840660,"uuid":"579643585","full_name":"karenpayneoregon/sql-server-password-secure","owner":"karenpayneoregon","description":"Securely storing passwords in SQL-Server for C# and verifying","archived":false,"fork":false,"pushed_at":"2023-02-07T18:27:51.000Z","size":123,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-10T02:07:31.452Z","etag":null,"topics":["csharp","csharp-core","passwords","sqlserver"],"latest_commit_sha":null,"homepage":"https://dev.to/karenpayneoregon/passwords-in-sql-server-c-1fhf","language":"TSQL","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/karenpayneoregon.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":"2022-12-18T11:51:07.000Z","updated_at":"2024-06-08T11:16:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"3af8df90-989b-4f04-9176-e849ba9025a9","html_url":"https://github.com/karenpayneoregon/sql-server-password-secure","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/karenpayneoregon/sql-server-password-secure","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karenpayneoregon%2Fsql-server-password-secure","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karenpayneoregon%2Fsql-server-password-secure/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karenpayneoregon%2Fsql-server-password-secure/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karenpayneoregon%2Fsql-server-password-secure/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/karenpayneoregon","download_url":"https://codeload.github.com/karenpayneoregon/sql-server-password-secure/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karenpayneoregon%2Fsql-server-password-secure/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31413269,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T20:09:54.854Z","status":"ssl_error","status_checked_at":"2026-04-04T20:09:44.350Z","response_time":60,"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":["csharp","csharp-core","passwords","sqlserver"],"created_at":"2024-11-30T19:21:38.973Z","updated_at":"2026-04-04T20:33:10.490Z","avatar_url":"https://github.com/karenpayneoregon.png","language":"TSQL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Storing passwords in SQL-Server database\n\nDevelopers just starting working with Windows Forms, WPF or Console applications tend to use plain text to store passwords in a database which is not wise as anyone that can open the database can see these passwords stored in plain text.\n\nPresented are two ways to keep passwords secure. The first [PWDENCRYPT](https://learn.microsoft.com/en-us/sql/t-sql/functions/pwdencrypt-transact-sql?view=sql-server-ver16) is easy but is marked as `obsolete` while the second, [HASHBYTES](https://learn.microsoft.com/en-us/sql/t-sql/functions/hashbytes-transact-sql?view=sql-server-ver16) is recommended.\n\nCode sample are provided for both `PWDENCRYPT` and `HASHBYTES`\n\n:heavy_check_mark: Make sure to read instructions in the readme file in the project for setting up the database.\n\n:heavy_check_mark: Requires Visual Studio 2022, version 17.4.x","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarenpayneoregon%2Fsql-server-password-secure","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkarenpayneoregon%2Fsql-server-password-secure","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarenpayneoregon%2Fsql-server-password-secure/lists"}