You are here

private static function LockrAes128CtrSha256KeyWrapper::encode in Lockr 7.3

Same name and namespace in other branches
  1. 7.2 vendor/lockr/lockr-client/src/KeyWrapper/LockrAes128CtrSha256KeyWrapper.php \Lockr\KeyWrapper\LockrAes128CtrSha256KeyWrapper::encode()
1 call to LockrAes128CtrSha256KeyWrapper::encode()
LockrAes128CtrSha256KeyWrapper::doEncrypt in vendor/lockr/lockr/src/KeyWrapper/LockrAes128CtrSha256KeyWrapper.php

File

vendor/lockr/lockr/src/KeyWrapper/LockrAes128CtrSha256KeyWrapper.php, line 101

Class

LockrAes128CtrSha256KeyWrapper

Namespace

Lockr\KeyWrapper

Code

private static function encode($key, $iv, $hmac_key) {
  $parts = [
    self::PREFIX,
    base64_encode($key),
    base64_encode($iv),
    base64_encode($hmac_key),
  ];
  return implode('$', $parts);
}