This PR introduces a new Hash Generator tool that allows users to generate secure hashes for their text using various cryptographic algorithms directly in the browser. The tool supports popular algorithms like SHA-256, SHA-512, MD5, PBKDF2 (with SHA-512), and HMAC (with SHA-256 or SHA-512). The implementation leverages Node.js' native crypto module, ensuring a secure and efficient solution without external dependencies.
Key Changes
Utility Functions
Added generateHash function to handle the creation of hashes using the selected algorithm and encoding.
This function ensures secure hashing by using well-established algorithms from the Node.js crypto module.
New Component
Implemented the HashGenerator component, which provides an interactive interface for users to input text, select an algorithm, and generate hashes.
The component includes options for customizing the hashing process, such as specifying a salt, iterations, output length, and encoding format.
Error Handling
Added comprehensive error handling to manage cases where inputs are missing or invalid, improving the user experience by providing clear feedback.
Benefits
Security and Performance
By utilizing the Node.js crypto module, the tool ensures that hashing is performed securely and efficiently, reducing potential risks and the application's overall footprint.
Flexibility
The tool offers multiple algorithms and customization options, allowing users to tailor the hashing process to their specific needs.
Ease of Use
The user interface is straightforward, with clear fields for input and options, making it easy for developers to generate and copy hashes for their applications.
Hello!
This PR introduces a new Hash Generator tool that allows users to generate secure hashes for their text using various cryptographic algorithms directly in the browser. The tool supports popular algorithms like SHA-256, SHA-512, MD5, PBKDF2 (with SHA-512), and HMAC (with SHA-256 or SHA-512). The implementation leverages Node.js' native
crypto
module, ensuring a secure and efficient solution without external dependencies.Key Changes
Utility Functions
generateHash
function to handle the creation of hashes using the selected algorithm and encoding.crypto
module.New Component
HashGenerator
component, which provides an interactive interface for users to input text, select an algorithm, and generate hashes.Error Handling
Benefits
Security and Performance
crypto
module, the tool ensures that hashing is performed securely and efficiently, reducing potential risks and the application's overall footprint.Flexibility
Ease of Use
Closes: #59