Download the PHP package wizofgoz/cryptographer without Composer

On this page you can find all versions of the php package wizofgoz/cryptographer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package cryptographer

Cryptographer

Build Status Style Status Total Downloads Latest Stable Version License

Introduction

Cryptographer provides an extensible replacement for Laravel's encryption service. It also allows you to define multiple drivers that can be used for different areas of your application.

Installation

You may use Composer to install Cryptographer into your Laravel project:

composer require wizofgoz/cryptographer

After installing, publish the configuration:

php artisan vendor:publish --provider="Wizofgoz\Cryptographer\EncryptionServiceProvider"

Configuration

After publishing the configuration file, it will be located at config/cryptographer.php This file allows you to define the encryption drivers available to your application.

Defaults

These options allow you to define the default encryption driver and key to use when using the encryption service. If no default driver is set, the first entry in the drivers array will be used.

Available Drivers

This array allows for defining the encryption drivers available to your application. Each entry in the list MUST contain an engine, cipher, and key name for proper use.

Keys

This array allows for defining multiple keys for use with your encryption drivers. Each key must have a unique name.

Local Driver

The simplest key implementation is one that is managed locally. With this driver, the key is visible locally in plaintext and is loaded directly into the encryption driver being used.

AWS Driver

When it is unacceptable for the key to be stored in plaintext, the AWS driver is able to use a local key that has been encrypted with an AWS KMS consumer key.

This allows you to rotate the encryption of the key and not have to re-encrypt all the data the key was used to encrypt.

Usage

This package integrates with Laravel's encryption system and either the built-in encrypt() and decrypt() helpers or the Crypt facade may be used when you want to utilize your default driver.

In order to use additional drivers, either the Crypt facade must be used as shown below:

Or the ncrypt and dcrypt helper functions must be used:

Key Generation

Encryption keys can be generated using the command php artisan crypt:key:generate and there are the following options available:

Available Engines

OpenSSL

The openssl engine is drop-in replacement for Laravel's encryption system that will work with existing keys assuming the cipher is set correctly.

Supported Ciphers

Sodium

The sodium engine depends on the Sodium PHP extension and will not be available if it is missing. In PHP 7.2+, the Sodium extension is part of the core and should always be available.

Supported Ciphers

Extensions

Custom encryption engines are expected to implement the Wizofgoz\Cryptographer\Contracts\Engine contract and can be added by simply extending EncryptionManager:

Custom key drivers are expected to implement the Wizofgoz\Cryptographer\Contracts\KeyDriver contract and can be added in a very similar manner by extending the KeyManager:


All versions of cryptographer with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1.0
ext-json Version *
ext-openssl Version *
illuminate/support Version ^5.6|^6.0
illuminate/container Version ^5.6|^6.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package wizofgoz/cryptographer contains the following files

Loading the files please wait ....