bricke / Qt-AES

Native Qt AES encryption class
The Unlicense
501 stars 187 forks source link

Question about qt-secret usage. #64

Open Montel opened 7 months ago

Montel commented 7 months ago

Hi, I am main developer of Ruqola (KDE Rocket chat client). I want to implement encryption. you can see how it works "https://docs.rocket.chat/customer-center/security-center/end-to-end-encryption-specifications"

Mainly we need to generate key: "crypto.subtle.generateKey({name: 'RSA-OAEP', modulusLength: 2048, publicExponent: new Uint8Array([0x01, 0x00, 0x01]), hash: {name: 'SHA-256'}}, true, ['encrypt', 'decrypt']);"

and RocketChat.E2E.crypto.generateKey({name: 'AES-CBC', length: 128}, true, ['encrypt', 'decrypt'])

Do you think that your lib can be use in my case ?

Thanks Regards

bricke commented 6 months ago

Hi, I have no code on generating keys, generating a key is not part of the AES specification.

Do you know how those keys are generated?

Montel commented 6 months ago

hi, we use https://github.com/RocketChat/Rocket.Chat/tree/2bf8edab056dbc5e0d40aeae2c4472f729ec09d9/app/e2e/client code here. and https://github.com/RocketChat/Rocket.Chat/blob/2bf8edab056dbc5e0d40aeae2c4472f729ec09d9/app/e2e/client/helper.js

We need to port to qt :)

WE use a module crypto it seems

thanks