source: branches/version-2_5-dev/data/module/Compat/tests/function/sha1.phpt @ 19986

Revision 19986, 558 bytes checked in by AMUAMU, 16 years ago (diff)

#818 (パスワードリマインダの答えのハッシュ暗号化) の解決
#819 (パスワードのハッシュ暗号化の強化) の解決
#335 (パスワードリマインダの改修) の準備修正
#895 (会員登録完了ページのタイトル異常) の解決
#899 (会員登録時にパスワードが正しく登録されない) の解決
#744 (PHP4 互換用途ソースを将来的に切り捨てやすい仕組みづくり) 関連の修正も含む

Line 
1--TEST--
2Function -- sha1
3--FILE--
4<?php
5require_once 'PHP/Compat/Function/sha1.php';
6
7$tests = array(
8    'abc',
9    'abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq',
10    'a',
11    '0123456701234567012345670123456701234567012345670123456701234567',
12    ''
13);
14
15foreach ($tests as $test) {
16    echo php_compat_sha1($test), "\n";
17}
18?>
19--EXPECT--
20a9993e364706816aba3e25717850c26c9cd0d89d
2184983e441c3bd26ebaae4aa1f95129e5e54670f1
2286f7e437faa5a7fce15d1ddcb9eaeaea377667b8
23e0c094e867ef46c350ef54a7f59dd60bed92ae83
24da39a3ee5e6b4b0d3255bfef95601890afd80709
Note: See TracBrowser for help on using the repository browser.