You are here

interface KeyWrapperInterface in Lockr 7.2

Same name and namespace in other branches
  1. 7.3 vendor/lockr/lockr/src/KeyWrapper/KeyWrapperInterface.php \Lockr\KeyWrapper\KeyWrapperInterface

Hierarchy

Expanded class hierarchy of KeyWrapperInterface

All classes that implement KeyWrapperInterface

File

vendor/lockr/lockr-client/src/KeyWrapper/KeyWrapperInterface.php, line 6

Namespace

Lockr\KeyWrapper
View 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

Namesort descending Modifiers Type Description Overrides
KeyWrapperInterface::decrypt public static function Decrypt the given ciphertext using encoded. 4
KeyWrapperInterface::enabled public static function 4
KeyWrapperInterface::encrypt public static function Encrypt the given plaintext. 4
KeyWrapperInterface::reencrypt public static function Encrypt the given plaintext using the same initial state as defined by encoded. 4