jorge2000x
jorge2000x
chacha12 can be used and is very fast,we should worry about key derivation
We should use argon2 instead of pbkdf2 or bcrypt because it is more modern and secure... The salt could be related to the group or bot, if you change phone...
In addition, chacha20 is faster than AES, unless the device has hardware acceleration, but in general chacha20 is faster(or even chacha12 but no)
Which libraries could we use? I was looking at libsodium but i didnt searched about. Create a fork to start working
When you're going to implement something as complex as cryptography, the ideal is to do it in the most robust way possible, using the token as a key is easier...
> I think we can also use the `unique id` i.e. `chat id` as the salt along with a passphrase. The best option.