This is a proof of concept for AES encryption using the crypto-js module. It demonstrates how to encrypt and decrypt data using AES-256-CBC. More functionality can be added as needed.
- Vite - A fast build tool that focuses on speed and performance.
- React - A JavaScript library for building user interfaces.
- TypeScript - A superset of JavaScript that adds static types.
- Tailwind CSS - A utility-first CSS framework for rapid UI development.
- ESLint - A static code analysis tool for identifying problematic patterns in JavaScript code.
- Prettier - An opinionated code formatter that enforces a consistent style.
- Crypto-JS - A JavaScript library of crypto standards to perform encryption and decryption.
To get started, clone the repository and install the dependencies:
git clone
cd aes-encryption-poc
npm installTo run the application, use the following command:
npm run devThis will start the development server and open the application in your default web browser.
To build the application for production, use the following command:
npm run buildThis will create a production-ready build of the application in the dist directory.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
export default tseslint.config({
extends: [
// Remove ...tseslint.configs.recommended and replace with this
...tseslint.configs.recommendedTypeChecked,
// Alternatively, use this for stricter rules
...tseslint.configs.strictTypeChecked,
// Optionally, add this for stylistic rules
...tseslint.configs.stylisticTypeChecked,
],
languageOptions: {
// other options...
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: import.meta.dirname,
},
},
})You can also install eslint-plugin-react-x and eslint-plugin-react-dom for React-specific lint rules:
// eslint.config.js
import reactX from 'eslint-plugin-react-x'
import reactDom from 'eslint-plugin-react-dom'
export default tseslint.config({
plugins: {
// Add the react-x and react-dom plugins
'react-x': reactX,
'react-dom': reactDom,
},
rules: {
// other rules...
// Enable its recommended typescript rules
...reactX.configs['recommended-typescript'].rules,
...reactDom.configs.recommended.rules,
},
})