Skip to content

Instantly share code, notes, and snippets.

@timoh6
timoh6 / mockup.php
Last active August 29, 2015 13:59
Suggestions for Laravel Encrypter
<?php
// Use a (maybe?) new "Security" namespace for RandomBytes
namespace Illuminate\Security;
class RandomBytes
{
/**
* Generate a random string of bytes suitable for cryptographic use.
*
* @param int $count
@timoh6
timoh6 / SecureRandomMockup.php
Created April 22, 2014 07:59
Symfony SecureRandom mockup
<?php
namespace Symfony\Component\Security\Core\Util;
class SecureRandom
{
/**
* Generate a random string of bytes suitable for cryptographic use.
*
* @param int $nbBytes
* @return string