PHP Classes

File: randombytes_example2.php

Recommend this page to a friend!
  Classes of Martin Latter  >  PHP Random Bytes  >  randombytes_example2.php  >  Download  
File: randombytes_example2.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP Random Bytes
Generate cryptographically strong random bytes
Author: By
Last change: update code to PHP 7.2
including mcrypt support removal
Date: 2 years ago
Size: 178 bytes
 

Contents

Class file image Download
<?php

declare(strict_types=1);

require(
'classes/randombytes.class.php');

use
Tinram\RandomBytes\RandomBytes;

$aData = RandomBytes::generate(32, 'openssl');

var_dump($aData);

For more information send a message to info at phpclasses dot org.