Vencord
Vencord copied to clipboard
[Plugin] Encryptcord
(Resubmission after requested fixes)
Encryptcord allows you to have an end-to-end encrypted conversation with your friends.
Simple interface
Groups are joined/started by clicking the lock icon in your chatbar.
The system uses a 4096 bit RSA keypair to ensure that your messages are safe. The keys are regenerated after every restart.
Choose who you want to talk to
When a user joins the group, you can click I don't want to talk to you!
to stop sending/receiving messages to/from them.
Toggle between message modes
Once in a group you can click the lock icon to toggle between sending encrypted and unencrypted messages
how do you even encrypt the messages?
how do you even encrypt the messages?
export const encryptData = async (pemPublicKey, data) => {
const publicKey = await importPemPublicKey(pemPublicKey);
const chunkSize = 446;
const encryptedChunks: any[] = [];
const encoder = new TextEncoder();
for (let i = 0; i < data.length; i += chunkSize) {
const chunk = await data.substring(i, i + chunkSize);
const encryptedChunk = await crypto.subtle.encrypt(
{
name: "RSA-OAEP",
},
publicKey,
encoder.encode(chunk)
);
encryptedChunks.push(arrayBufferToBase64(encryptedChunk));
}
return encryptedChunks;
};
i don't think this is a good idea to have... too niche, and if people want encryption, they should instead use something like matrix, xmpp, signal, etc. Having it on discord just makes little sense
you may still post it in the third party plugins channel if you'd like
and thank you for your work regardless!
I fucking hate matrix and I'm addicted to discord and I also have to discuss government secrets - thank you for the plugin!
I fucking hate matrix and I'm addicted to discord and I also have to discuss government secrets - thank you for the plugin!
<:husk:1026532993923293184>
i really like the idea but genuinely have no idea how to download this