mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-13 02:21:34 +00:00
![pancake](/assets/img/avatar_default.png)
- Fixes ruby warnings - Follow java syntax conventions - Helped to identify and fix bugs in many vapis - Sync swig examples - Add test-r_core.rb (ruby test for RCore) * Some work in r_cons, some refactoring and cleanup - scr.html is now working again - w32 cons support should work now - Rename r_cons_get_columns -> r_cons_get_size() - But it needs more work * Typedef all r_range, r_parse and r_anal structs - Add missing r_lib.pc in configure.acr * 'make' clean now removes the libr* in swig/${LANG}/
10 lines
203 B
Python
10 lines
203 B
Python
#from r2.r_hash import rHash, Size_MD4
|
|
from libr import RHash, Size_MD4
|
|
|
|
hash = RHash(False)
|
|
ret = hash.do_md4 ("food", 4)
|
|
str = "md4: "
|
|
for i in range(0, Size_MD4):
|
|
str += "%02x"%ord(ret[i])
|
|
print str
|