https://github.com/devolutions/bcryptpbkdf.net
A pure C# implementation of bcrypt_pbkdf, used to derive passwords for OpenSSH keys.
https://github.com/devolutions/bcryptpbkdf.net
security
Last synced: 10 months ago
JSON representation
A pure C# implementation of bcrypt_pbkdf, used to derive passwords for OpenSSH keys.
- Host: GitHub
- URL: https://github.com/devolutions/bcryptpbkdf.net
- Owner: Devolutions
- License: apache-2.0
- Created: 2024-07-31T16:12:56.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-09-09T15:36:24.000Z (over 1 year ago)
- Last Synced: 2025-02-08T06:43:55.486Z (12 months ago)
- Topics: security
- Language: C#
- Homepage:
- Size: 40 KB
- Stars: 0
- Watchers: 6
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# BCryptPbkdf.Net
A pure C# implementation of bcrypt_pbkdf, used to derive passwords for OpenSSH keys.
# How to use
```c#
byte[] password = Encoding.UTF8.GetBytes("password");
byte[] salt = [1, 2, 3, 4, 5, 6, 7, 8, 1, 2, 3, 4, 5, 6, 7, 8]; // Use a random salt
int rounds = 64;
byte[] key = BCryptPbkdf.Hash(password, salt, rounds, 32);
```