interface
Illuminate
/
Contracts
/
Encryption
/
Encrypter
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
Encrypter
Methods
public
encrypt ( $value , $serialize ) : string
Encrypt the given value.
Parameters
- $value mixed
- $serialize bool
public
decrypt ( $payload , $unserialize ) : mixed
Decrypt the given value.
Parameters
- $payload string
- $unserialize bool
public
getKey ( ) : string
Get the encryption key that the encrypter is currently using.