Skip to content

Instantly share code, notes, and snippets.

View hfmikep's full-sized avatar

Michael Love hfmikep

View GitHub Profile
@jdforsythe
jdforsythe / test_laravel_crypt_lengths.php
Created April 14, 2016 17:37
Test Laravel Crypt::encrypt() result lengths
<?php
function random_bytes($bytes) {
$secure = true;
$buf = openssl_random_pseudo_bytes($bytes, $secure);
if ($buf !== false && $secure && strlen($buf) === $bytes) {
return $buf;
}
}