interface KeyWrapperInterface in Lockr 7.2
Same name and namespace in other branches
- 7.3 vendor/lockr/lockr/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-client/ src/ KeyWrapper/ KeyWrapperInterface.php, line 6
Namespace
Lockr\KeyWrapperView source
interface KeyWrapperInterface {
/**
* @return bool
*/
public static function enabled();
/**
* Encrypt the given plaintext using the same initial state as
* defined by encoded.
*
* @param string $plaintext
* @param string $encoded
* @return array
*/
public static function reencrypt($plaintext, $encoded);
/**
* Encrypt the given plaintext.
*
* @param string $plaintext
* @return array
*/
public static function encrypt($plaintext);
/**
* Decrypt the given ciphertext using encoded.
*
* @param string $ciphertext
* @param string $encoded
* @return string|bool
*/
public static function decrypt($ciphertext, $encoded);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
KeyWrapperInterface:: |
public static | function | Decrypt the given ciphertext using encoded. | 4 |
KeyWrapperInterface:: |
public static | function | 4 | |
KeyWrapperInterface:: |
public static | function | Encrypt the given plaintext. | 4 |
KeyWrapperInterface:: |
public static | function | Encrypt the given plaintext using the same initial state as defined by encoded. | 4 |