From 80b887d16e483cafc2631bc23c3e0c48fc366b8d Mon Sep 17 00:00:00 2001 From: Mygod Date: Sun, 12 Jan 2020 23:09:52 +0800 Subject: [PATCH] Warn users when using stream ciphers --- src/crypto.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/crypto.c b/src/crypto.c index 9a67d6c8..10d500be 100644 --- a/src/crypto.c +++ b/src/crypto.c @@ -156,6 +156,7 @@ crypto_init(const char *password, const char *key, const char *method) break; } if (m != -1) { + LOGI("Stream ciphers are insecure, therefore deprecated, and should be almost always avoided."); cipher_t *cipher = stream_init(password, key, method); if (cipher == NULL) return NULL;