/JsonEncryptor

A simple way to encrypt specific elements in a JSON file using AES encryption.

Primary LanguageC#MIT LicenseMIT

JsonEncryptor

An easy-to-use tool for encrypting specific elements within a JSON file using AES encryption. The inspiration for this project stemmed from various situations where storing sensitive information in raw form within app settings or environment variables wasn't ideal, and access to dedicated secrets stores wasn't available.

JsonEncryptor

Features

  • Load your JSON file
  • Use your own AES Key and Iv (or generate a new pair)
  • Select which value(s) to encrypt/decrypt by stating the key(s)
  • Load your JSON file and compare before and after
  • Save the UI state on a separate JSON file so that you can come back to where you left off

Usage

Option 1: Running Locally

  1. Clone the repository:

    git clone https://github.com/darrenleeyx/JsonEncryptor.git
  2. Navigate to the project directory:

    cd JsonEncryptor
  3. Build the project:

    dotnet build
  4. Run the application:

    dotnet run --project src/JsonEncryptor.WinForm/JsonEncryptor.WinForm.csproj

Option 2: Downloading Artifacts from Workflows

  1. Go to Workflow and click on the latest workflow run.

  2. Navigate to the "Artifacts" section and download the artifacts named "JsonEncryptor.WinForm".

  3. Extract the downloaded artifacts.

  4. Run JsonEncryptor.WinForm.exe. You do not need to install .NET desktop runtime as it is self-contained.

License

This project is licensed under the MIT License.