Foundation

Main View


Components

Charts

Dialogs

Framer Animations

Forms

Grids

Typography


Tools


@uireact/crypto


Package: @uireact/crypto

v0.1.1
‼️ Beta

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:

Expand peer dependencies

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>
  </>