You are here

protected function KeyClient::encode in Lockr 7

2 calls to KeyClient::encode()
KeyClient::encrypt in src/Lockr/KeyClient.php
KeyClient::reencrypt in src/Lockr/KeyClient.php

File

src/Lockr/KeyClient.php, line 157

Class

KeyClient

Namespace

Lockr

Code

protected function encode($cipher, $mode, $iv, $key) {
  $parts = array(
    $cipher,
    $mode,
    base64_encode($iv),
    base64_encode($key),
  );
  return implode('$', $parts);
}