PHP Package: paragonie/halite

Halite is a powerful PHP cryptography library for easy encryption and decryption tasks.

Current Version: 5.1.4
Last Updated: 2025-09-19
PHP Requirement: ^8.1
Dependencies:
paragonie/sodium_compat
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

Halite offers a robust set of cryptographic functions for securing sensitive data in PHP applications. It provides a user-friendly interface for symmetric encryption, public-key encryption, password-based encryption, and more. With Halite, developers can enhance the security of their PHP projects by implementing modern cryptographic techniques with ease.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 5.1.4

Download Download v5.1.4

Previous Versions

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php
// Example from PHPlibraries.com
require_once 'libs/paragonie/halite/5.1.4/loader.php';
require_once 'libs/paragonie/sodium_compat/2.4.0/loader.php';

use ParagonIE\Halite\KeyFactory;
use ParagonIE\Halite\Symmetric\Encryption;

$obj = new KeyFactory();
echo '✅ Test OK: ' . get_class($obj);
?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.

Community Discussion

Ask questions, share tips, or report issues below.