Skip to content

Instantly share code, notes, and snippets.

View milaabl's full-sized avatar
🇺🇦
🇧🇬

Ludmila milaabl

🇺🇦
🇧🇬
View GitHub Profile
const types = {
OrderComponents: [
{ name: "offerer", type: "address" },
{ name: "zone", type: "address" },
{ name: "offer", type: "OfferItem[]" },
{ name: "consideration", type: "ConsiderationItem[]" },
{ name: "orderType", type: "uint8" },
{ name: "startTime", type: "uint256" },
{ name: "endTime", type: "uint256" },
{ name: "zoneHash", type: "bytes32" },
@milaabl
milaabl / App.tsx
Created August 5, 2023 11:19
E2E RSA + AES encryption system (symmetric+asymmetric encryption for sensitive data transfers) | React, CryptoJS & Shell .sh (OpenSSL)
import CryptoJS from 'crypto-js';
import './app.css';
import FileInput from "./components/FileInput/FileInput";
import { FC, useEffect, useState } from "react";
const getAESEncrypted = (secret: string, password: string) => {
const encrypted = CryptoJS.AES.encrypt(secret, password);
return encrypted.toString();
}