made sha256.lua behave on plain lua
This commit is contained in:
parent
0d6c5f6d56
commit
ecba456ef6
@ -6,7 +6,8 @@
|
||||
-- Found Here: https://bitbucket.org/Boolsheet/bslf/src/1ee664885805/bit.lua
|
||||
--
|
||||
-- Data card support added by https://github.com/SuPeRMiNoR2
|
||||
sha = {}
|
||||
_G.sha = {}
|
||||
if component then
|
||||
if component.data then
|
||||
datac = component.data
|
||||
function sha.sha256(data)
|
||||
@ -15,6 +16,7 @@ if component.data then
|
||||
return string.format("%02x", string.byte(c))
|
||||
end))
|
||||
end
|
||||
end
|
||||
else
|
||||
local MOD = 2^32
|
||||
local MODM = MOD-1
|
||||
|
Loading…
Reference in New Issue
Block a user