PHPackages                             giftcards/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. giftcards/encryption

ActiveLibrary[Security](/categories/security)

giftcards/encryption
====================

Library that helps with managing encrypting data.

1.8.0(6y ago)15.9k21MITPHPPHP &gt;=7.3CI failing

Since Sep 18Pushed 6y ago6 watchersCompare

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

READMEChangelogDependencies (15)Versions (18)Used By (1)

Giftcards Encryption Library [![Build Status](https://camo.githubusercontent.com/6b60c81b13f1a74e3c17b0f38d5eba46fcabe6587c89916b2c1298408d076aa5/68747470733a2f2f7472617669732d63692e6f72672f6769667463617264732f456e6372797074696f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/giftcards/Encryption)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[](#giftcards-encryption-library-)

Library that helps make configuring and using encrypt schemes easier.

Purpose
-------

[](#purpose)

This library was made to make managing encryptoin of data eaiser including sourcing encryption keys, rotating keys, using different ciphers, and being able to better keep track of wich data was encrypted with combination of keys

Usage
-----

[](#usage)

### Basic

[](#basic)

to just get going you will need to define at least one key source and one profile.

profiles are the way you tell the encryptor which cipher you want to use and which key you want to use for encrypting/decrypting and key sources are the classes that are in charge of loading a key given its name.

simple example.

```
