hmerritt / discord-encryption

An experimental encryption solution for Discord

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Discord Encryption

We're back baby :)

An experimental encryption solution for Discord using BetterDiscord.

Download the encryption.plugin.js from the releases here.

Features

Adds ability to encrypt / decrypt messages on discord using a set password

  • Utilizes AES-256 encryption via the crypto-js library
  • Passwords are saved per-chat
  • Messages are decrypted the moment they are receved with little to no delay
  • Encrypted messages appear as green
  • Messages that fail to be decrypted (most likely due to an incorrect password) display a message and appear as red

Context Context

How to use

Install

  • Install Discord
  • Install BetterDiscord
  • Navigate to Discord Preferences -> BD/Plugins -> Open Plugin Folder
  • Place 'encryption.plugin.js' in BetterDiscord's plugin folder
  • Enable encryption in the BD/Plugins preference pane.

It may ask to install an additional plugin 0PluginLibrary.plugin which is required - It should install itself if you click download.

Context Context

Usage

  • To toggle the encryption simply click the lock icon. You will be prompted for a password, if none is found for the chat channel.
  • Received messages are decrypted automatically
  • To view or change the encryption password simply right-click the lock icon and an input box will appear - passwords are automatically saved as you type

Context

Encrypted Message

Context

Decrypted Message

Context

Development

This plugin uses rollup to bundle what's in src into the final encryption.plugin.js script.

Getting rollup to work with BetterDiscord was a gamechanger as it allows the plugin to use multiple src files instead of just one. This makes development much nicer.

How to build Build:

$ yarn && yarn build

This runs both rollup, and a build-patch script to add the required BetterDiscord META tags.

About

An experimental encryption solution for Discord

License:Apache License 2.0


Languages

Language:JavaScript 94.8%Language:TypeScript 5.2%