Encrypt or decrypt a binary input string.
public function testVector() { $input = 'hello world'; $pass = '******'; $vector = base64_decode('vusXragCy83KQFo'); $this->assertEquals($input, Otp::crypt($vector, $pass)); }
public function testVector() { $input = 'hello world'; $pass = '******'; $vector = base64_decode('vusXragCy83KQFo'); $this->assertEquals($input, Otp::crypt($vector, $pass)); }