Encoder ArrayBuffer tests
|
* |
fromArrayBuffer([0x00])
|
* |
fromArrayBuffer([0x5c])
|
* |
fromArrayBuffer([0x7f])
|
* |
fromArrayBuffer([0x80])
|
* |
fromArrayBuffer([0xff, 0xff])
|
* |
Encoder Base64 tests
|
* |
toBase64('')
|
* |
toBase64('f')
|
* |
toBase64('fo')
|
* |
toBase64('foo')
|
* |
toBase64('foob')
|
* |
toBase64('fooba')
|
* |
toBase64('foobar')
|
* |
Encoder UTF tests
|
* |
fromUtf('\0')
|
* |
fromUtf('\x5c')
|
* |
fromUtf('\x7f')
|
* |
fromUtf('\x80')
|
* |
fromUtf('\u05ca')
|
* |
fromUtf('\u07ff')
|
* |
fromUtf('\u0800')
|
* |
fromUtf('\u2c3c')
|
* |
fromUtf('\uffff')
|
* |
fromUtf('\ud800\udc00')
|
* |
fromUtf('\ud834\udf06')
|
* |
fromUtf('\udbff\udfff')
|
* |
Hash has160 tests
|
Has160 |
has160('')
|
- |
has160('a')
|
- |
has160('abc')
|
- |
has160('message digest')
|
- |
has160('a..z')
|
- |
has160('A..Za..z0..9')
|
- |
has160('1234567890' x 8)
|
- |
hash setState() getState()
|
Has160#setState
Has160#getState |
Hash md2 tests
|
Md2 |
md2('')
|
- |
md2('a')
|
- |
md2('abc')
|
- |
md2('message digest')
|
- |
md2('a..z')
|
- |
md2('A..Za..z0..9')
|
- |
md2('1234567890' x 8)
|
- |
hash setState() getState()
|
Md2#setState
Md2#getState |
Hash md4 tests
|
Md4 |
md4('')
|
- |
md4('a')
|
- |
md4('abc')
|
- |
md4('message digest')
|
- |
md4('a..z')
|
- |
md4('A..Za..z0..9')
|
- |
md4('1234567890' x 8)
|
- |
hash setState() getState()
|
Md4#setState
Md4#getState |
Hash md5 tests
|
Md5 |
md5('')
|
- |
md5('a')
|
- |
md5('abc')
|
- |
md5('message digest')
|
- |
md5('a..z')
|
- |
md5('A..Za..z0..9')
|
- |
md5('1234567890' x 8)
|
- |
hash setState() getState()
|
Md5#setState
Md5#getState |
Hash ripemd128 tests
|
Ripemd |
ripemd128('')
|
- |
ripemd128('a')
|
- |
ripemd128('abc')
|
- |
ripemd128('message digest')
|
- |
ripemd128('a..z')
|
- |
ripemd128('abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq')
|
- |
ripemd128('A..Za..z0..9')
|
- |
ripemd128('1234567890' x 8)
|
- |
hash setState() getState()
|
Ripemd#setState
Ripemd#getState |
Hash ripemd160 tests
|
Ripemd |
ripemd160('')
|
- |
ripemd160('a')
|
- |
ripemd160('abc')
|
- |
ripemd160('message digest')
|
- |
ripemd160('a..z')
|
- |
ripemd160('abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq')
|
- |
ripemd160('A..Za..z0..9')
|
- |
ripemd160('1234567890' x 8)
|
- |
hash setState() getState()
|
Ripemd#setState
Ripemd#getState |
Hash ripemd256 tests
|
Ripemd |
ripemd256('')
|
- |
ripemd256('a')
|
- |
ripemd256('abc')
|
- |
ripemd256('message digest')
|
- |
ripemd256('a..z')
|
- |
ripemd256('abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq')
|
- |
ripemd256('A..Za..z0..9')
|
- |
ripemd256('1234567890' x 8)
|
- |
hash setState() getState()
|
Ripemd#setState
Ripemd#getState |
Hash ripemd320 tests
|
Ripemd |
ripemd320('')
|
- |
ripemd320('a')
|
- |
ripemd320('abc')
|
- |
ripemd320('message digest')
|
- |
ripemd320('a..z')
|
- |
ripemd320('abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq')
|
- |
ripemd320('A..Za..z0..9')
|
- |
ripemd320('1234567890' x 8)
|
- |
hash setState() getState()
|
Ripemd#setState
Ripemd#getState |
Hash sha0 tests
|
Sha0 |
sha0('')
|
- |
sha0('a')
|
- |
sha0('abc')
|
- |
sha0('message digest')
|
- |
sha0('a..z')
|
- |
sha0('abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq')
|
- |
sha0('A..Za..z0..9')
|
- |
sha0('1234567890' x 8)
|
- |
hash setState() getState()
|
Sha0#setState
Sha0#getState |
Hash sha1 tests
|
Sha1 |
sha1('')
|
- |
sha1('a')
|
- |
sha1('abc')
|
- |
sha1('message digest')
|
- |
sha1('a..z')
|
- |
sha1('abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq')
|
- |
sha1('A..Za..z0..9')
|
- |
sha1('1234567890' x 8)
|
- |
sha1('01234567' x 80)
|
- |
hash setState() getState()
|
Sha1#setState
Sha1#getState |
Hash sha224 tests
|
Sha256 |
sha224('')
|
- |
sha224('abc')
|
- |
sha224('abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq')
|
- |
sha224('abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmnhijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu')
|
- |
sha224('01234567' x 80)
|
- |
hash setState() getState()
|
Sha256#setState
Sha256#getState |
Hash sha256 tests
|
Sha256 |
sha256('')
|
- |
sha256('abc')
|
- |
sha256('abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq')
|
- |
sha256('abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmnhijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu')
|
- |
sha256('01234567' x 80)
|
- |
hash setState() getState()
|
Sha256#setState
Sha256#getState |
Hash sha384 tests
|
Sha512 |
sha384('')
|
- |
sha384('abc')
|
- |
sha384('abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq')
|
- |
sha384('abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmnhijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu')
|
- |
sha384('01234567' x 80)
|
- |
hash setState() getState()
|
Sha512#setState
Sha512#getState |
Hash sha512 tests
|
Sha512 |
sha512('')
|
- |
sha512('abc')
|
- |
sha512('abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq')
|
- |
sha512('abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmnhijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu')
|
- |
sha512('01234567' x 80)
|
- |
hash setState() getState()
|
Sha512#setState
Sha512#getState |
Hash sha512/224 tests
|
Sha512 |
sha512/224('')
|
- |
sha512/224('abc')
|
- |
sha512/224('abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq')
|
- |
sha512/224('abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmnhijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu')
|
- |
sha512/224('01234567' x 80)
|
- |
hash setState() getState()
|
Sha512#setState
Sha512#getState |
Hash sha512/256 tests
|
Sha512 |
sha512/256('')
|
- |
sha512/256('abc')
|
- |
sha512/256('abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq')
|
- |
sha512/256('abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmnhijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu')
|
- |
sha512/256('01234567' x 80)
|
- |
hash setState() getState()
|
Sha512#setState
Sha512#getState |
Hash sm3 tests
|
Sm3 |
sm3('')
|
- |
sm3('a')
|
- |
sm3('abc')
|
- |
sm3('abcd' x 16)
|
- |
sm3('a..z')
|
- |
sm3('abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq')
|
- |
hash setState() getState()
|
Sm3#setState
Sm3#getState |
Hash snefru128/2 tests
|
Snefru |
snefru128/2('')
|
- |
snefru128/2(0x0a)
|
- |
snefru128/2('1' + 0x0a)
|
- |
snefru128/2('12' + 0x0a)
|
- |
snefru128/2('123' + 0x0a)
|
- |
snefru128/2('1234' + 0x0a)
|
- |
snefru128/2('12345' + 0x0a)
|
- |
snefru128/2('123456' + 0x0a)
|
- |
snefru128/2('1234567' + 0x0a)
|
- |
snefru128/2('12345678' + 0x0a)
|
- |
snefru128/2('123456789' + 0x0a)
|
- |
snefru128/2('The theory of quantum electrodynamics has now lasted for ....')
|
- |
hash setState() getState()
|
Snefru#setState
Snefru#getState |
Hash snefru128/8 tests
|
Snefru |
snefru128/8('')
|
- |
snefru128/8(0x0a)
|
- |
snefru128/8('1' + 0x0a)
|
- |
snefru128/8('12' + 0x0a)
|
- |
snefru128/8('123' + 0x0a)
|
- |
snefru128/8('1234' + 0x0a)
|
- |
snefru128/8('12345' + 0x0a)
|
- |
snefru128/8('123456' + 0x0a)
|
- |
snefru128/8('1234567' + 0x0a)
|
- |
snefru128/8('12345678' + 0x0a)
|
- |
snefru128/8('123456789' + 0x0a)
|
- |
snefru128/8('The theory of quantum electrodynamics has now lasted for ....')
|
- |
hash setState() getState()
|
Snefru#setState
Snefru#getState |
Hash snefru256/4 tests
|
Snefru |
snefru256/4('')
|
- |
snefru256/4(0x0a)
|
- |
snefru256/4('1' + 0x0a)
|
- |
snefru256/4('12' + 0x0a)
|
- |
snefru256/4('123' + 0x0a)
|
- |
snefru256/4('1234' + 0x0a)
|
- |
snefru256/4('12345' + 0x0a)
|
- |
snefru256/4('123456' + 0x0a)
|
- |
snefru256/4('1234567' + 0x0a)
|
- |
snefru256/4('12345678' + 0x0a)
|
- |
snefru256/4('123456789' + 0x0a)
|
- |
snefru256/4('The theory of quantum electrodynamics has now lasted for ....')
|
- |
hash setState() getState()
|
Snefru#setState
Snefru#getState |
Hash snefru256/8 tests
|
Snefru |
snefru256/8('')
|
- |
snefru256/8(0x0a)
|
- |
snefru256/8('1' + 0x0a)
|
- |
snefru256/8('12' + 0x0a)
|
- |
snefru256/8('123' + 0x0a)
|
- |
snefru256/8('1234' + 0x0a)
|
- |
snefru256/8('12345' + 0x0a)
|
- |
snefru256/8('123456' + 0x0a)
|
- |
snefru256/8('1234567' + 0x0a)
|
- |
snefru256/8('12345678' + 0x0a)
|
- |
snefru256/8('123456789' + 0x0a)
|
- |
snefru256/8('The theory of quantum electrodynamics has now lasted for ....')
|
- |
hash setState() getState()
|
Snefru#setState
Snefru#getState |
Hash whirlpool-0 tests
|
Whirlpool |
whirlpool-0('')
|
- |
whirlpool-0('a')
|
- |
whirlpool-0('abc')
|
- |
whirlpool-0('message digest')
|
- |
whirlpool-0('a..z')
|
- |
whirlpool-0('A..Za..z0..9')
|
- |
whirlpool-0('1234567890' x 8)
|
- |
whirlpool-0('The quick brown fox jumps over the lazy dog')
|
- |
hash setState() getState()
|
Whirlpool#setState
Whirlpool#getState |
Hash whirlpool-t tests
|
Whirlpool |
whirlpool-t('')
|
- |
whirlpool-t('a')
|
- |
whirlpool-t('abc')
|
- |
whirlpool-t('message digest')
|
- |
whirlpool-t('a..z')
|
- |
whirlpool-t('A..Za..z0..9')
|
- |
whirlpool-t('1234567890' x 8)
|
- |
whirlpool-t('The quick brown fox jumps over the lazy dog')
|
- |
hash setState() getState()
|
Whirlpool#setState
Whirlpool#getState |
Hash whirlpool tests
|
Whirlpool |
whirlpool('')
|
- |
whirlpool('a')
|
- |
whirlpool('abc')
|
- |
whirlpool('message digest')
|
- |
whirlpool('a..z')
|
- |
whirlpool('A..Za..z0..9')
|
- |
whirlpool('1234567890' x 8)
|
- |
whirlpool('The quick brown fox jumps over the lazy dog')
|
- |
whirlpool('abcdbcdecdefdefgefghfghighijhijk')
|
- |
whirlpool(0x00 x 31)
|
- |
whirlpool(0x00 x 32)
|
- |
whirlpool(0x00 x 33)
|
- |
hash setState() getState()
|
Whirlpool#setState
Whirlpool#getState |
Hmac has160 tests
|
Hmac
Has160 |
hmac-has160('Hi There', 0x0b x 20)
|
- |
hmac-has160('what do ya want for nothing?', 'Jefe')
|
- |
hmac-has160(0xdd x 50, 0xaa x 20)
|
- |
hmac-has160(0xcd x 50, 0x0102030405060708090a0b0c0d0e0f10111213141516171819)
|
- |
hmac-has160('Test With Truncation', 0x0c x 20)
|
- |
hmac-has160('Test Using Larger Than Block-Size Key - Hash Key First', 0xaa x 80)
|
- |
hmac-has160('Test Using Larger Than Block-Size Key and Larger Than One Block-Size Data', 0xaa x 80)
|
- |
Hmac md5 tests
|
Hmac
Md5 |
hmac-md5('Hi There', 0x0b x 16)
|
- |
hmac-md5('what do ya want for nothing?', 'Jefe')
|
- |
hmac-md5(0xdd x 50, 0xaa x 16)
|
- |
hmac-md5(0xcd x 50, 0x0102030405060708090a0b0c0d0e0f10111213141516171819)
|
- |
hmac-md5('Test With Truncation', 0x0c x 16)
|
- |
hmac-md5('Test Using Larger Than Block-Size Key - Hash Key First', 0xaa x 80)
|
- |
hmac-md5('Test Using Larger Than Block-Size Key and Larger Than One Block-Size Data', 0xaa x 80)
|
- |
Hmac sha1 tests
|
Hmac
Sha1 |
hmac-sha1('Hi There', 0x0b x 20)
|
- |
hmac-sha1('what do ya want for nothing?', 'Jefe')
|
- |
hmac-sha1(0xdd x 50, 0xaa x 20)
|
- |
hmac-sha1(0xcd x 50, 0x0102030405060708090a0b0c0d0e0f10111213141516171819)
|
- |
hmac-sha1('Test With Truncation', 0x0c x 20)
|
- |
hmac-sha1('Test Using Larger Than Block-Size Key - Hash Key First', 0xaa x 80)
|
- |
hmac-sha1('Test Using Larger Than Block-Size Key and Larger Than One Block-Size Data', 0xaa x 80)
|
- |
Hmac sha224 tests
|
Hmac
Sha256 |
hmac-sha224('Hi There', 0x0b x 20)
|
- |
hmac-sha224('what do ya want for nothing?', 'Jefe')
|
- |
hmac-sha224(0xdd x 50, 0xaa x 20)
|
- |
hmac-sha224(0xcd x 50, 0x0102030405060708090a0b0c0d0e0f10111213141516171819)
|
- |
hmac-sha224('Test With Truncation', 0x0c x 20)
|
- |
hmac-sha224('Test Using Larger Than Block-Size Key - Hash Key First', 0xaa x 131)
|
- |
hmac-sha224('This is a test using a larger than block-size key and a larger than block-size data. The key needs to be hashed before being used by the HMAC algorithm.', 0xaa x 131)
|
- |
Hmac sha256 tests
|
Hmac
Sha256 |
hmac-sha256('Hi There', 0x0b x 20)
|
- |
hmac-sha256('what do ya want for nothing?', 'Jefe')
|
- |
hmac-sha256(0xdd x 50, 0xaa x 20)
|
- |
hmac-sha256(0xcd x 50, 0x0102030405060708090a0b0c0d0e0f10111213141516171819)
|
- |
hmac-sha256('Test With Truncation', 0x0c x 20)
|
- |
hmac-sha256('Test Using Larger Than Block-Size Key - Hash Key First', 0xaa x 131)
|
- |
hmac-sha256('This is a test using a larger than block-size key and a larger than block-size data. The key needs to be hashed before being used by the HMAC algorithm.', 0xaa x 131)
|
- |
Hmac sha384 tests
|
Hmac
Sha512 |
hmac-sha384('Hi There', 0x0b x 20)
|
- |
hmac-sha384('what do ya want for nothing?', 'Jefe')
|
- |
hmac-sha384(0xdd x 50, 0xaa x 20)
|
- |
hmac-sha384(0xcd x 50, 0x0102030405060708090a0b0c0d0e0f10111213141516171819)
|
- |
hmac-sha384('Test With Truncation', 0x0c x 20)
|
- |
hmac-sha384('Test Using Larger Than Block-Size Key - Hash Key First', 0xaa x 131)
|
- |
hmac-sha384('This is a test using a larger than block-size key and a larger than block-size data. The key needs to be hashed before being used by the HMAC algorithm.', 0xaa x 131)
|
- |
Hmac sha512 tests
|
Hmac
Sha512 |
hmac-sha512('Hi There', 0x0b x 20)
|
- |
hmac-sha512('what do ya want for nothing?', 'Jefe')
|
- |
hmac-sha512(0xdd x 50, 0xaa x 20)
|
- |
hmac-sha512(0xcd x 50, 0x0102030405060708090a0b0c0d0e0f10111213141516171819)
|
- |
hmac-sha512('Test With Truncation', 0x0c x 20)
|
- |
hmac-sha512('Test Using Larger Than Block-Size Key - Hash Key First', 0xaa x 131)
|
- |
hmac-sha512('This is a test using a larger than block-size key and a larger than block-size data. The key needs to be hashed before being used by the HMAC algorithm.', 0xaa x 131)
|
- |