LaravelCrypter

Summary

No protected properties found
N/A
No private methods found
No private properties found
N/A
File
crypter.php
Package
Default
Class hierarchy
LaravelCrypter

Tags

None found

Properties

$cipher

$cipher : string

The encryption cipher.

Type

string

Tags

None found

$mode

$mode : string

The encryption mode.

Type

string

Tags

None found

$block

$block : integer

The block size of the cipher.

Type

integer

Tags

None found

Methods

encrypt()

encrypt(string  $value) : string

Encrypt a string using Mcrypt.

The string will be encrypted using the AES-256 scheme and will be base64 encoded.

Parameters

string $value

Returns

string

static

Tags

None found

decrypt()

decrypt(string  $value) : string

Decrypt a string using Mcrypt.

Parameters

string $value

Returns

string

static

Tags

None found

randomizer()

randomizer() : integer

Get the most secure random number generator for the system.

Returns

integer

static

Tags

None found

iv_size()

iv_size() : integer

Get the input vector size for the cipher and mode.

Returns

integer

static

Tags

None found

pad()

pad(string  $value) : string

Add PKCS7 compatible padding on the given value.

Parameters

string $value

Returns

string

static

Tags

None found

unpad()

unpad(string  $value) : string

Remove the PKCS7 compatible padding from the given value.

Parameters

string $value

Returns

string

static

Tags

None found

key()

key() : string

Get the encryption key from the application configuration.

Returns

string

static

Tags

None found