diff --git a/cmake/toolchain/heptools-dev-base.cmake b/cmake/toolchain/heptools-dev-base.cmake
index 0a489ffc9c07bed68a380b5808b08cfeff21169e..5ed3d08388b15e8b2c12fcccfc59dd0cbc9fe313 100644
--- a/cmake/toolchain/heptools-dev-base.cmake
+++ b/cmake/toolchain/heptools-dev-base.cmake
@@ -264,6 +264,7 @@ LCG_external_package(libaio            0.3.110-1
 LCG_external_package(libffi            3.2.1                                    )
 LCG_external_package(libgeotiff        1.5.1                                    )
 LCG_external_package(libgit2           0.28.2                                   )
+LCG_external_package(libsodium         1.0.18                                   )
 LCG_external_package(libtool           2.4.2                                    )
 if( NOT ${LCG_OS} MATCHES ubuntu|mac )
   LCG_external_package(libxkbcommon    0.7.1                                    )
diff --git a/externals/CMakeLists.txt b/externals/CMakeLists.txt
index a1c889e89ab0fad81270847081c9a1976cda91c9..5d09d6a09a5d751afd924a492b1a34538c4e268d 100644
--- a/externals/CMakeLists.txt
+++ b/externals/CMakeLists.txt
@@ -1653,12 +1653,21 @@ LCGPackage_Add(
   DEPENDS Python
 )
 
+#---libsodium----------------------------------------------------------------------
+LCGPackage_Add(
+  libsodium
+  URL ${GenURL}/libsodium-${libsodium_native_version}.tar.gz
+  CONFIGURE_COMMAND ./configure --prefix=<INSTALL_DIR>
+  BUILD_IN_SOURCE 1
+)
+
 #---zeromq----------------------------------------------------------------------
 LCGPackage_Add(
   zeromq
   URL ${GenURL}/zeromq-${zeromq_native_version}.tar.gz
-  CONFIGURE_COMMAND ./configure --prefix=<INSTALL_DIR> --with-libsodium=no
+  CONFIGURE_COMMAND ./configure --prefix=<INSTALL_DIR> --with-libsodium=yes
   BUILD_IN_SOURCE 1
+  DEPENDS libsodium
 )
 
 #----autoconf-------------------------------------------------------------------