Commit Graph

54 Commits

Author SHA1 Message Date
kikito
58bfa546fe bump version to 1.1.0. Add changelog 2016-07-15 01:21:56 +02:00
kikito
172176713e Merge branch 'pgimeno-incremental-md5' 2016-07-15 01:17:41 +02:00
kikito
86da43dbda makes update return self 2016-07-15 01:16:54 +02:00
Pedro Gimeno
46b50003f8 Add a simple unit test for the incremental version 2016-07-04 11:18:28 +02:00
Pedro Gimeno
51febea6c3 Implement incremental MD5
Two new functions:

md5.new(): returns a new MD5 state object with two methods:
 - MD5State:update(s) - adds the string s to the calculation
 - MD5State:finish()  - returns the final MD5 as a binary string

md5.tohex(): converts to hexadecimal the binary string returned by md5.sum() and MD5State:finish()
2016-07-02 21:31:54 +02:00
Enrique García
21d22c1868 Merge pull request #11 from kikito/pgimeno-fix-large-strings
Pgimeno fix large strings
2016-07-02 20:38:20 +02:00
kikito
5297100c7c luacheck install fix
remove luacheck
2016-07-02 20:26:40 +02:00
kikito
8603af5e23 delete long example which is too slow in lua 5.1 2016-07-02 18:32:44 +02:00
kikito
7e5623a206 luacheck install fix 2016-07-02 18:22:53 +02:00
kikito
a2144276e1 Merge branch 'fix-large-strings' of https://github.com/pgimeno/md5.lua into pgimeno-fix-large-strings 2016-07-02 18:04:23 +02:00
kikito
51347acd88 renames variables to avoid luacheck errors 2016-07-02 18:03:49 +02:00
kikito
1f6eba9a7b updates travis 2016-07-02 18:03:28 +02:00
Pedro Gimeno
dd10f1c9de Fix #4 by limiting the sum output to 32 bits. 2016-07-02 10:44:35 +02:00
Pedro Gimeno
467f30efb6 Add large strings test to demonstrate failure in current version. 2016-07-02 10:42:54 +02:00
kikito
7fc429b519 add rockspec 2015-04-06 21:13:45 +02:00
kikito
42b3d5ae5a bump version 2015-04-06 21:11:54 +02:00
kikito
bd1dd4bd0f fix typo in LuaJIT 2015-04-06 20:57:59 +02:00
kikito
d3c97f950f fix error when adding if 2015-04-06 20:54:06 +02:00
kikito
9fcb45d9f2 do not normalize luajit functions 2015-04-06 20:44:11 +02:00
kikito
686c18c49e add rockspec for 1.0.1 2015-04-06 18:52:54 +02:00
kikito
4dfe7a0698 bump version 2015-04-06 18:47:51 +02:00
kikito
f253f5ffd5 Use hex literals everywhere 2015-04-06 18:34:11 +02:00
kikito
4e68bf98a8 do not create global variables in 5.1 2015-04-06 18:32:11 +02:00
kikito
b096b1f3c1 Revert "separate lua 5.1 functions into number-based and table-based"
This reverts commit 65d03bceef.
2015-04-06 18:30:32 +02:00
kikito
1e7902f65b Revert "typo"
This reverts commit 55cff74afc.
2015-04-06 18:30:29 +02:00
kikito
f70bf13a41 Revert "Use hex literals everywhere"
This reverts commit 1212664fb7.
2015-04-06 18:30:24 +02:00
kikito
1212664fb7 Use hex literals everywhere 2015-04-06 18:21:52 +02:00
kikito
55cff74afc typo 2015-04-06 18:17:23 +02:00
kikito
65d03bceef separate lua 5.1 functions into number-based and table-based 2015-04-06 18:13:47 +02:00
kikito
77ac109e66 Remove unnecessary calculations
The “expand” before the loops ensures that both tables (tbl_m and
tbl_n) have the same length
2015-04-06 17:41:57 +02:00
kikito
907bbd1655 Remove unneeded locals 2015-04-06 17:39:17 +02:00
kikito
858b23b28d refactor to_bits 2015-04-06 17:37:16 +02:00
kikito
332517912d refactor tbl2number 2015-04-06 17:24:46 +02:00
kikito
a08ab4f93d Refactor expand in Lua 5.1 2015-04-06 17:23:12 +02:00
kikito
0950963cd3 Remove unnecessary checks in lua 5.1 2015-04-06 17:22:48 +02:00
kikito
6a83ce8c21 typo 2015-04-06 17:09:13 +02:00
kikito
60d897e229 attempt to fix lua 5.2 2015-04-06 16:54:24 +02:00
kikito
cfbceec4ac attempt to fix travis 2015-04-06 14:22:03 +02:00
kikito
d1fc9bc9f7 add test for long string. Related with #4 2015-04-06 14:09:32 +02:00
kikito
9a87570317 add Positive07 to credits 2015-02-09 13:07:59 +01:00
kikito
1c76e92944 add rockspecs 2015-02-09 13:05:06 +01:00
kikito
b97a79f022 Revert "up luarocks a little more"
This reverts commit af6e779eb8.
2015-02-09 12:16:13 +01:00
kikito
af6e779eb8 up luarocks a little more 2015-02-09 12:06:47 +01:00
kikito
b75e79ea6d downgrade luarocks 2015-02-09 11:40:43 +01:00
kikito
98844a67fe update luarocks version in travis 2015-02-09 11:38:22 +01:00
kikito
c3ed7b8713 add travis 2015-02-09 11:27:21 +01:00
kikito
3289e9fa7c change README 2015-02-09 11:16:47 +01:00
Enrique García
b56a8a1e93 Merge pull request #2 from Positive07/patch-1
Use BitOp or Bit32 libraries where available
2015-02-09 11:13:46 +01:00
Pablo Mayobre
57cc66eba6 Checking the libs doesnt error
Added pcalls instead of raw requires as suggested by Kikito
2015-02-08 07:28:31 -03:00
Pablo Mayobre
e7df9d53cf Made md5.lua use BitOp or Bit32 libraries where available 2015-02-07 23:13:01 -03:00