Details of OTP's operation:
- output is in binary format
- does NOT chain cypher blocks, instead uses a form of block counter feedback
- does NOT generate IVs
- as with all stream ciphers, never use the same key more than once
and never assume the authenticity of a message when decrypting
public function testVector() { $input = 'hello world'; $pass = '******'; $vector = base64_decode('vusXragCy83KQFo'); $this->assertEquals($input, Otp::crypt($vector, $pass)); }