Skip to content

kevind7/Delphi-NaCl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Delphi-NaCl

Delphi wrapper for (the awesome) libsodium

lib/libsodium.pas import all functions and constants of libsodium

lib/Sodium.*.pas are Delphi Wrappers around the libsodium API meant to be used with managed Delphi types (TBytes in fact)

This wrapper is based on libsodium master branch (may be unstable), version 1.0.20

Read the libsodium documentation.

Build libsodium for Windows using Visual Studio

These instructions are for Using Visual Studio 2022. Use start menu to open a "Developer Command Prompt for VS 2022"

C:\> git clone https://github.com/jedisct1/libsodium.git

# /!\ Build from master branch

C:\> cd libsodium\builds\msvc\vs2022
C:\> msbuild /m /v:n /p:Configuration=DynRelease /p:Platform=Win32 libsodium.sln
C:\> msbuild /m /v:n /p:Configuration=DynRelease /p:Platform=x64 libsodium.sln

Build artifacts can be found under libsodium\bin\<Platform>\Release\v143\dynamic with <Platform> being one of Win32 or x64.

Examples

Example code ported from libsodium documentation can be found under examples directory.

License

This code is licensed under the same license as libsodium : ISC License

About

Delphi wrapper for libsodium

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Pascal 52.0%
  • C 48.0%