PHPackages                             ride/lib-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. [Security](/categories/security)
4. /
5. ride/lib-encryption

ActiveLibrary[Security](/categories/security)

ride/lib-encryption
===================

Encryption library of the Ride framework

1.1.0(8y ago)05.4k3MITPHP

Since Nov 27Pushed 8y ago7 watchersCompare

[ Source](https://github.com/all-ride/ride-lib-encryption)[ Packagist](https://packagist.org/packages/ride/lib-encryption)[ RSS](/packages/ride-lib-encryption/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (9)Used By (3)

Ride: Encryption Library
========================

[](#ride-encryption-library)

Encryption library of the PHP Ride framework.

What's In This Library
----------------------

[](#whats-in-this-library)

### Cipher

[](#cipher)

The *Cipher* interface is used to implement a cipher to encrypt and decrypt data using an encryption key.

Available implementations:

- ride\\library\\encryption\\cipher\\ChainCipher: Chain of ciphers with an certain amount of iterations
- ride\\library\\encryption\\cipher\\GenericCipher: Generic implementation
- ride\\library\\encryption\\cipher\\SimpleCipher: Simple implementation with relative short length of encrypted data, not secure for sensitive data

### Hash

[](#hash)

The *Hash* interface is used to implement cryptographic hash algorithms. These are methods which take an arbitrary block of data and return a fixed-size bit string

Available implementations:

- ride\\library\\encryption\\hash\\GenericHash: Use installed hash functions, defaults to SHA256
- ride\\library\\encryption\\hash\\PlainHash: For testing purposes

Code Sample
-----------

[](#code-sample)

Check this code sample to see the possibilities of this library:

```
