All Projects → robinlinden → libsodium-cmake

robinlinden / libsodium-cmake

Licence: ISC license
Wrapper around the libsodium repository providing good integration with CMake when using FetchContent or adding it as a submodule.

Programming Languages

CMake
9771 projects

Projects that are alternatives of or similar to libsodium-cmake

Flutter sodium
Flutter bindings for libsodium
Stars: ✭ 77 (+266.67%)
Mutual labels:  libsodium
Enacl
Erlang bindings for NaCl / libsodium
Stars: ✭ 159 (+657.14%)
Mutual labels:  libsodium
libgodium
Pure Go implementation of cryptographic APIs found in libsodium
Stars: ✭ 46 (+119.05%)
Mutual labels:  libsodium
Libsodium Go
A complete overhaul of the Golang wrapper for libsodium
Stars: ✭ 105 (+400%)
Mutual labels:  libsodium
Learntocrypto
Learn to crypto workshop
Stars: ✭ 1,687 (+7933.33%)
Mutual labels:  libsodium
Pgsodium
Modern cryptography for PostgreSQL using libsodium.
Stars: ✭ 202 (+861.9%)
Mutual labels:  libsodium
Tweetnacl Js
Port of TweetNaCl cryptographic library to JavaScript
Stars: ✭ 1,176 (+5500%)
Mutual labels:  libsodium
libsalty
Elixir bindings for libsodium (NIF)
Stars: ✭ 20 (-4.76%)
Mutual labels:  libsodium
Libsodium Jni
(Android) Networking and Cryptography Library (NaCL) JNI binding. JNI is utilized for fastest access to native code. Accessible either in Android or Java application. Uses SWIG to generate Java JNI bindings. SWIG definitions are extensible to other languages.
Stars: ✭ 157 (+647.62%)
Mutual labels:  libsodium
molch
An implementation of the axolotl ratchet based on libsodium.
Stars: ✭ 24 (+14.29%)
Mutual labels:  libsodium
Streamcryptor
Stream encryption & decryption with libsodium and protobuf
Stars: ✭ 112 (+433.33%)
Mutual labels:  libsodium
Encryptedrmd
🔑 Password protected markdown html reports in R using libsodium
Stars: ✭ 136 (+547.62%)
Mutual labels:  libsodium
Nsec
A modern and easy-to-use cryptographic library for .NET Core based on libsodium
Stars: ✭ 217 (+933.33%)
Mutual labels:  libsodium
Chloride
Stars: ✭ 83 (+295.24%)
Mutual labels:  libsodium
soda
Libsodium bindings for Erlang
Stars: ✭ 17 (-19.05%)
Mutual labels:  libsodium
Zbox
Zero-details, privacy-focused in-app file system.
Stars: ✭ 1,185 (+5542.86%)
Mutual labels:  libsodium
Kalium
Java binding to the Networking and Cryptography (NaCl) library with the awesomeness of libsodium
Stars: ✭ 203 (+866.67%)
Mutual labels:  libsodium
salty
Portable NaCl-powered encryption
Stars: ✭ 26 (+23.81%)
Mutual labels:  libsodium
dryoc
Don't Roll Your Own Crypto: pure-Rust, hard to misuse cryptography library
Stars: ✭ 163 (+676.19%)
Mutual labels:  libsodium
sodalite
tweetnacl in rust
Stars: ✭ 26 (+23.81%)
Mutual labels:  libsodium

libsodium-cmake

Description

CMakeWrapper for libsodium, the modern, portable, easy to use crypto library.

This wrapper is written with a few goals in mind:

  1. It should be easy to build
  2. It should be obvious that libsodium's source code hasn't been touched
  3. It should be easy to integrate into projects

Building

Clone!

git clone --recursive https://github.com/robinlinden/libsodium-cmake.git

Build!

mkdir build && cd build
cmake ..
make
make test

Using in your project

cmake_minimum_required(VERSION 3.14)
# 3.11 and higher is supported, but this example uses
# `FetchContent_MakeAvailable` which is only available starting with 3.14.

include(FetchContent)

# Update the commit to point to whatever libsodium-cmake-commit you want to target.
FetchContent_Declare(Sodium
    GIT_REPOSITORY https://github.com/robinlinden/libsodium-cmake.git
    GIT_TAG 99f14233eab1d4f7f49c2af4ec836f2e701c445e # HEAD as of 2022-05-28
)
set(SODIUM_DISABLE_TESTS ON)
FetchContent_MakeAvailable(Sodium)

target_link_libraries(${PROJECT_NAME}
    PRIVATE
        sodium
)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].