diff --git a/source/Spiral/Encrypter/EncrypterManager.php b/source/Spiral/Encrypter/EncrypterManager.php index f10a8460..67dbe151 100644 --- a/source/Spiral/Encrypter/EncrypterManager.php +++ b/source/Spiral/Encrypter/EncrypterManager.php @@ -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} */