Foundation
Main View
Components
Charts
Dialogs
Framer Animations
Forms
Grids
Typography
Tools
Package: @uireact/crypto
Functions to do AES encryption and decryption of a given string. The functions require a secret to successfully encrypt and decrypt the phrase.
1. Make sure you install peer dependencies first:
2. Install package:
npm i -S @uireact/crypto
UiAESEncrypt -> encrypts
UiAESDecrypt -> decrypts
<> <UiText>{UiAESEncrypt("Whatever-I-want-encrypted", "1234")}</UiText> <hr /> <UiText>{UiAESDecrypt("U2FsdGVkX195Rf8jq7T4jLAlnek5jMuybgvn05AsJJbsfiea/WDwnDKyj0nOlfV3", "1234")}</UiText> </>