Core Secret's crypto code.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
libsodium @ b70aa80


CryptoPill is the crypto code used by Core Secret. This is a standalone crypto library heavily relying on the crypto primitives introduced by NaCl.


CryptoPill depends on libsodium but this library is not directly provided by CryptoPill and must instead be included as a submodule. Follow these instructions to clone it and keep it in sync.

Clone and compile libsodium

# Add libsodium as Git submodule
git submodule add git:// libsodium
git submodule init

# Build libsodium

# CryptoPill's static lib file and headers are copied to libsodium_dist/
# - Headers from the libsodium_dist/include/sodium/ directory are added to the Xcode project under the group CryptoPill/sodium/
# - A dependancy on libsodium.a is added to the Xcode project

# Later, to update libsodium just run these commands and if needed update its headers in Xcode to keep libsodium in sync
cd libsodium && git pull

Compile CryptoPill

Open this project in Xcode (Xcode 5 is the Xcode's version currently used), compile it and run its tests. It is then possible to include this project in a Xcode workspace to use it for his own project.

Open source projects used by CryptoPill


The open source projects included above have their own license terms, please refer to their header files to see their licenses in details. Other than that the CryptoPill's code is licensed under the MIT license.