diff --git a/plugins/evernote.koplugin/clip.lua b/plugins/evernote.koplugin/clip.lua index a5efbd102..8e255030a 100644 --- a/plugins/evernote.koplugin/clip.lua +++ b/plugins/evernote.koplugin/clip.lua @@ -1,7 +1,7 @@ local DocumentRegistry = require("document/documentregistry") local DocSettings = require("docsettings") local DEBUG = require("dbg") -local md5 = require("MD5") +local md5 = require("ffi/MD5") -- lfs local MyClipping = { @@ -220,7 +220,7 @@ function MyClipping:getImage(image) --doc:clipPagePNGFile(image.pos0, image.pos1, --image.pboxes, image.drawer, "/tmp/"..md5(png)..".png") doc:close() - if png then return { png = png, hash = md5(png) } end + if png then return { png = png, hash = md5.sum(png) } end end end diff --git a/plugins/kosync.koplugin/main.lua b/plugins/kosync.koplugin/main.lua index 0d6093e92..58ac0ad7d 100644 --- a/plugins/kosync.koplugin/main.lua +++ b/plugins/kosync.koplugin/main.lua @@ -12,7 +12,7 @@ local Math = require("optmath") local DEBUG = require("dbg") local T = require("ffi/util").template local _ = require("gettext") -local md5 = require("MD5") +local md5 = require("ffi/MD5") local l10n = { _("Unknown server error."), @@ -165,7 +165,7 @@ function KOSync:doRegister(username, password) custom_url = self.kosync_custom_server, service_spec = self.path .. "/api.json" } - local userkey = md5:sum(password) + local userkey = md5.sum(password) local ok, status, body = pcall(client.register, client, username, userkey) if not ok and status then UIManager:show(InfoMessage:new{ @@ -195,7 +195,7 @@ function KOSync:doLogin(username, password) custom_url = self.kosync_custom_server, service_spec = self.path .. "/api.json" } - local userkey = md5:sum(password) + local userkey = md5.sum(password) local ok, status, body = pcall(client.authorize, client, username, userkey) if not ok and status then UIManager:show(InfoMessage:new{