Core

60 results found
Posted on November 25, 2016

Str::random

The Str::random function generates a random string of the specified length.

Uses php 5.3.0 openssl_random_pseudo_bytes() function to produce random strings. If we want a string strong and sufficient for cryptography this is the method we need.

Read more
Posted on November 25, 2016

Str::limit

The Str::limit function limits the number of characters in a string. The function accepts a string as its first argument and the maximum number of resulting characters as its second argument.

Read more