Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
native encrypter has been dropped
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy-j committed Feb 18, 2016
1 parent 801319b commit 1033aa9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions source/Spiral/Encrypter/EncrypterManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,16 @@ public function __construct(EncrypterConfig $config)
$this->config = $config;
}

/**
* Generate new random encryption key (binary format).
*
* @return string
*/
public function generateKey()
{
return \Crypto::CreateNewRandomKey();
}

/**
* {@inheritdoc}
*/
Expand Down

0 comments on commit 1033aa9

Please sign in to comment.