interface KeyWrapperInterface in Lockr 7.3
Same name and namespace in other branches
- 7.2 vendor/lockr/lockr-client/src/KeyWrapper/KeyWrapperInterface.php \Lockr\KeyWrapper\KeyWrapperInterface
Hierarchy
- interface \Lockr\KeyWrapper\KeyWrapperInterface
Expanded class hierarchy of KeyWrapperInterface
All classes that implement KeyWrapperInterface
File
- vendor/
lockr/ lockr/ src/ KeyWrapper/ KeyWrapperInterface.php, line 4
Namespace
Lockr\KeyWrapperView source
interface KeyWrapperInterface {
/**
* @return bool
*/
public static function enabled();
/**
* Encrypt the given plaintext.
*
* @param string $plaintext
* @param string|null $key
*
* @return array
*/
public static function encrypt($plaintext, $key = null);
/**
* Encrypt the given plaintext reusing state.
*
* @param string $plaintext
* @param string $wrapping_key
*
* @return array
*/
public static function reencrypt($plaintext, $wrapping_key);
/**
* Decrypt the given ciphertext.
*
* @param string $ciphertext
* @param string $wrapping_key
*
* @return string|bool
*/
public static function decrypt($ciphertext, $wrapping_key);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
KeyWrapperInterface:: |
public static | function | Decrypt the given ciphertext. | 5 |
KeyWrapperInterface:: |
public static | function | 5 | |
KeyWrapperInterface:: |
public static | function | Encrypt the given plaintext. | 5 |
KeyWrapperInterface:: |
public static | function | Encrypt the given plaintext reusing state. | 5 |