Вход Регистрация
Файл: vendor/laravel/framework/src/Illuminate/Contracts/Encryption/Encrypter.php
Строк: 57
<?php

namespace IlluminateContractsEncryption;

interface 
Encrypter
{
    
/**
     * Encrypt the given value.
     *
     * @param  mixed  $value
     * @param  bool  $serialize
     * @return string
     *
     * @throws IlluminateContractsEncryptionEncryptException
     */
    
public function encrypt(#[SensitiveParameter] $value, $serialize = true);

    /**
     * Decrypt the given value.
     *
     * @param  string  $payload
     * @param  bool  $unserialize
     * @return mixed
     *
     * @throws IlluminateContractsEncryptionDecryptException
     */
    
public function decrypt($payload$unserialize true);

    
/**
     * Get the encryption key that the encrypter is currently using.
     *
     * @return string
     */
    
public function getKey();

    
/**
     * Get the current encryption key and all previous encryption keys.
     *
     * @return array
     */
    
public function getAllKeys();

    
/**
     * Get the previous encryption keys.
     *
     * @return array
     */
    
public function getPreviousKeys();
}
Онлайн: 2
Реклама