update test/md5.nas(still has bug) & add libmd5 in module(written in C++)

This commit is contained in:
ValKmjolnir
2022-03-28 17:14:11 +08:00
parent 617ad03d33
commit dd7740f1fd
5 changed files with 344 additions and 69 deletions
+8
View File
@@ -0,0 +1,8 @@
import("lib.nas");
var md5=func(str){
var lib=dylib.dlopen("./module/libmd5"~(os.platform()=="windows"?".dll":".so"));
var res=dylib.dlcall(dylib.dlsym(lib,"nas_md5"),str);
dylib.dlclose(lib);
return res;
}