Replying to Avatar Alex Gleason

nip04 encrypt: 5,000 iter/s

aes-cbc without a shared secret encrypt: 40,000 iter/s

aes-gcm and nip44 basically the same.

The point is if you're encrypting a message to only yourself, it's 10x faster to not do this diffie-hellman thing and just BYO secret.

Please note that I don't actually understand all these words, I just ran a few benchmarks, and decided to encrypt secrets in my database with aes-gcm and just one key instead of nip44/nip04.

Avatar
frphank 1y ago

What's aes-cbc without a shared secret? You mean without a key exchange step that generates a secret?

The key exchange is a once off whereas the encryption will depend on the amount of data.

Reply to this note

Please Login to reply.

Discussion

No replies yet.