You are here

protected function KeyClient::decode in Lockr 7

2 calls to KeyClient::decode()
KeyClient::decrypt in src/Lockr/KeyClient.php
KeyClient::reencrypt in src/Lockr/KeyClient.php

File

src/Lockr/KeyClient.php, line 169

Class

KeyClient

Namespace

Lockr

Code

protected function decode($encoded) {
  list($cipher, $mode, $iv, $key) = explode('$', $encoded, 4);
  $iv = base64_decode($iv);
  $key = base64_decode($key);
  return array(
    $cipher,
    $mode,
    $iv,
    $key,
  );
}