{"id":15008439,"url":"https://github.com/carlosmakin/pbkdf2","last_synced_at":"2026-03-27T04:50:03.765Z","repository":{"id":219838401,"uuid":"750066245","full_name":"carlosmakin/pbkdf2","owner":"carlosmakin","description":"An implementation of the Password-Based Key Derivation Function 2 (PBKDF2) mechanism as per RFC 8018.","archived":false,"fork":false,"pushed_at":"2024-08-11T23:55:41.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-18T22:47:19.890Z","etag":null,"topics":["dartlang","hmac","pbkdf2","rfc8018"],"latest_commit_sha":null,"homepage":"","language":"Dart","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/carlosmakin.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2024-01-29T23:13:22.000Z","updated_at":"2024-08-11T23:55:45.000Z","dependencies_parsed_at":"2024-02-25T19:30:03.602Z","dependency_job_id":"825c9b40-c6c9-4129-96f2-9ebc210f9c8f","html_url":"https://github.com/carlosmakin/pbkdf2","commit_stats":null,"previous_names":["carlosmakin/pbkdf2"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carlosmakin%2Fpbkdf2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carlosmakin%2Fpbkdf2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carlosmakin%2Fpbkdf2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carlosmakin%2Fpbkdf2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/carlosmakin","download_url":"https://codeload.github.com/carlosmakin/pbkdf2/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243190912,"owners_count":20250978,"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":["dartlang","hmac","pbkdf2","rfc8018"],"created_at":"2024-09-24T19:18:46.364Z","updated_at":"2025-12-28T05:02:20.636Z","avatar_url":"https://github.com/carlosmakin.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"## PBKDF2 🔑\n\n### Overview\n\nThis Dart repository implements the Password-Based Key Derivation Function 2 (PBKDF2) as per [RFC 8018](https://www.rfc-editor.org/rfc/rfc8018). PBKDF2 is a widely-used method for deriving cryptographic keys from passwords. It is particularly effective in thwarting brute-force attacks due to its use of salt and variable iteration counts.\n\n### PBKDF2\n\nPBKDF2 applies a pseudorandom function, such as HMAC, to the input password along with a salt value and repeats the process multiple times to produce a derived key. This key can then be used for secure data encryption.\n\n#### Key Features:\n- **Enhanced Security**: Increases resistance against brute-force attacks through the use of salt and iterations.\n- **Customizable**: Allows for the selection of the hash function and adjustment of iteration counts based on security needs.\n- **Versatile Application**: Suitable for a wide range of cryptographic applications, including encryption key generation and password hashing.\n\n#### Best Practices:\n- Use a sufficiently long and random salt to protect against rainbow table attacks.\n- Set a high iteration count to increase the time required for brute-force attacks.\n\n### Background and History\n\nPBKDF2, standardized in RFC 8018, is an evolution in password-based cryptography, providing a method to safely derive cryptographic keys from passwords.\n\n### RFC 8018\n\nRFC 8018 provides comprehensive guidelines on the implementation and usage of PBKDF2. It outlines the algorithm's mechanics, emphasizing security considerations crucial for its effective application.\n\n## Usage Examples\n\n### Real-World Use Case: Key Generation for Encryption\n\n**Scenario**: Generating a strong encryption key from a passphrase.\n\n```dart\nimport 'dart:typed_data';\nimport 'package:pbkdf2/pbkdf2.dart';\n\nUint8List passphrase = ...; // User-provided passphrase\nUint8List salt = ...; // A unique salt\nint iterations = 10000; // Standard iteration count\nint keyLength = 32; // Key length for AES encryption\n\n// Generate key\nUint8List encryptionKey = PBKDF2.deriveKey(passphrase, salt, iterations, keyLength);\n\n// Use encryptionKey for cryptographic purposes\n```\n\n## Contribution\n\nContributions to improve the implementation, enhance security, and extend functionality are welcome. If you find any issues or have suggestions, please feel free to open an issue or submit a pull request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarlosmakin%2Fpbkdf2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcarlosmakin%2Fpbkdf2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarlosmakin%2Fpbkdf2/lists"}