PHPackages                             lablnet/encryption - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. lablnet/encryption

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

lablnet/encryption
==================

PHP Encryption package.

1.2(6y ago)133.0k↓50%93MITPHPPHP ^7.1CI failing

Since Feb 6Pushed 5y ago2 watchersCompare

[ Source](https://github.com/Lablnet/PHP-Encryption)[ Packagist](https://packagist.org/packages/lablnet/encryption)[ RSS](/packages/lablnet-encryption/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (3)

[![Build Status](https://camo.githubusercontent.com/15cb6b054e62a4d1d5ac3023780b803fb2dcfdad4c079521d5bbba7705b14558/68747470733a2f2f7472617669732d63692e636f6d2f4c61626c6e65742f5048502d456e6372797074696f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/Lablnet/PHP-Encryption)[![StyleCI](https://camo.githubusercontent.com/55718b769fec0dfa0d0ae5acb36691f7e2f3144377baf047669daa7a8f902bdc/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3136393336383336322f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/169368362)

PHP Encryption
==============

[](#php-encryption)

Encryption in PHP.

Requirement
-----------

[](#requirement)

1. PHP 7 (7.3 Recommanded).
2. Composer.
3. openSSL php extension.
4. Sodium php extension for use sodium adapter.

Insallation
-----------

[](#insallation)

Installing this package is very simple, first ensure you have the right PHP version and composer installed then in your terminal/(command prompt) run: `composer require lablnet/encryption`

Encrypt
-------

[](#encrypt)

You can encrypt string by calling to encrypt method

```
