crypt() публичный статический Метод

Encrypt or decrypt a binary input string.
public static crypt ( string $input, string $password, string $algo = 'sha512' ) : string
$input string Input data to encrypt
$password string Encryption/decryption key to use on input
$algo string Hashing algo to generate keystream
Результат string
Пример #1
0
 public function testVector()
 {
     $input = 'hello world';
     $pass = '******';
     $vector = base64_decode('vusXragCy83KQFo');
     $this->assertEquals($input, Otp::crypt($vector, $pass));
 }