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
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
Pedro Gimeno
dd10f1c9de
Fix #4 by limiting the sum output to 32 bits.
2016-07-02 10:44:35 +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
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
98844a67fe
update luarocks version in travis
2015-02-09 11:38:22 +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
kikito
a34df17b17
added VERSION, DESCRIPTION, URL and LICENSE
2013-09-14 14:14:06 +02:00
kikito
a9905a9c13
more cleanup
2013-08-30 19:16:49 +02:00
kikito
dab1b130bd
initial commit with working implementation, readme and license
2013-08-30 19:12:29 +02:00