for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Mfonte\Base62x\Encryption\Cypher;
class Encrypt
{
public static function token($data, $method, $key)
$iv = openssl_random_pseudo_bytes(Bytes::iv($method));
return bin2hex($iv).openssl_encrypt($data, $method, $key, 0, $iv);
}