Customize Consent Preferences

We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.

The cookies that are categorized as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... 

Always Active

Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.

No cookies to display.

Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.

No cookies to display.

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.

No cookies to display.

Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.

No cookies to display.

Advertisement cookies are used to provide visitors with customized advertisements based on the pages you visited previously and to analyze the effectiveness of the ad campaigns.

No cookies to display.

Select Page

Using Libsodium in PHP Projects

Using Libsodium in PHP Projects

A guide to using the libsodium PHP extension for modern, secure, and fast cryptography. Developers can now develop fast, secure, and reliable applications without needing to know what a stream cipher even is.

This e-book is intended for PHP developers with no prior cryptography experience. To that end, this ebook will not go too in-depth to the nature of the lower-level cryptography features that each libsodium feature uses. Towards the end of each chapter, a link will be provided to other resources that explain the finer details for readers that are interested.

After reading this brief electronic manual, you should…

  • Know what libsodium is, what features it has, and how to install it (both the library and the PHP extension from PECL).
  • Generally understand which cryptography tool to use for a specific scenario.
  • Be capable of writing production-quality code that uses libsodium.

Chapters breakdown

  • Chapter 1 should explain what libsodium is, introduce some basic concepts, and guide you through installing libsodium and the PHP extension.
  • Chapter 2 aims to be a useful reference page for all the functions and constants exposed by libsodium.
  • Chapters 3 – 9 cover the various functions that libsodium offers, what their purpose is, and how to use them.
  • Chapter 10 contains ‘recipes’: Example code that uses libsodium to satisfy a project requirement.

Using Libsodium in PHP Projects

by Paragon Initiative (Online reading only) – 10 Chapters

Using Libsodium in PHP Projects by Paragon Initiative