This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | |
} |