Registry / crypto / paragonie-halite

paragonie-halite

JSON →
library5.1.4phppackagistunverified

High-level cryptography interface powered by libsodium for secure encryption and authentication.

composer require paragonie/halite
INSTALL
IMPORT
SIG · PARAGONIE-HALITE
P
paragonie-halite
cryptophpv5.1.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Crypto
use ParagonIE\Halite\Symmetric\Crypto;

Encrypt a message using a symmetric key.

use ParagonIE\Halite\Symmetric\Crypto; use ParagonIE\Halite\KeyFactory; $key = KeyFactory::generateEncryptionKey(); $encrypted = Crypto::encrypt('secret message', $key); echo $encrypted;
Debug
Known issues
breakingRequires libsodium (PHP 7.2+ or ext-sodium).
fix
Install ext-sodium or use PHP 7.2+.
affects: >=5.0
breakingBreaking changes between major versions (e.g., 4.x to 5.x).
fix
Review the upgrade guide when migrating.
affects: >=5.0
Upgrade
Version history
5.1.4latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
23 hits · last 30 days
node
22
Amazon
1
Resources
paragonie-halite — pip install paragonie-halite · libregistry