public function testSha1Encoding() { // $method = new Sh1Encoding(); $encoder = new Encoder($method); $this->assertEquals('2181b2633e7ae8c3e964317dbd591eee51ab7a6d', $encoder->encodePassword(self::PASSWORD)); }
public function testSha1Encoding() { //$method = Sha1('ciagZnakow'); //$encoder = new Encoder($method);// // encoder should be initialized properly HERE // $method = new CodingPass('ciagZnakow'); $encoder = new Encoder($method); $this->assertEquals('2181b2633e7ae8c3e964317dbd591eee51ab7a6d', $encoder->encodePassword(self::PASSWORD)); }
public function testMd5Encoding() { $method = new Md5Encoding(); $encoder = new Encoder($method); $this->assertEquals('b9f68093fb2c77ffe0ce847bdc179e9a', $encoder->encodePassword(self::PASSWORD)); }
public function testSha1Encoding() { $method = new Sha1MethodEncoding(); $encoder = new Encoder($method); $this->assertEquals('8610bab963e355c7fb3b16cf559852d3e98770ff', $encoder->encodePassword(self::PASSWORD)); }