The "encrystorage" package is a lightweight and secure solution for encrypting and decrypting sensitive data in the local storage of web browsers. It provides two simple yet powerful functions that enable developers to store and retrieve encrypted data securely.
- TypeScript
- CryptoJS (for encryption and decryption)
Install the package via npm:
npm install encrystorage
import SecureStorage from "encrystorage";
const encryptionKey = "your-secret-key";
const secureStorage = new SecureStorage(encryptionKey);
const sensitiveData = "sensitive information";
secureStorage.encryptAndSave(sensitiveData);
// Later, retrieve and decrypt the data
const decryptedData = secureStorage.getAndDecrypt();
console.log(decryptedData); // Output: 'sensitive information'
We welcome contributions to improve the "browser-encrypt-storage" package. To contribute, follow these steps:
1.Fork the repository. 2.Create a new branch for your feature or bug fix. 3.Make changes and commit them. 4.Push your branch to your forked repository. 5.Create a pull request to the main repository.
If you encounter any bugs or have suggestions for improvements, please open an issue on GitHub. We appreciate your feedback and will address the issues as soon as possible.
If you need any assistance or have questions about using the package, feel free to contact us via the GitHub repository or by email at [email protected]