diff --git a/pixcrypt-1.2-1.rockspec b/pixcrypt-1.2-2.rockspec similarity index 96% rename from pixcrypt-1.2-1.rockspec rename to pixcrypt-1.2-2.rockspec index be2e66d..1ea6599 100644 --- a/pixcrypt-1.2-1.rockspec +++ b/pixcrypt-1.2-2.rockspec @@ -1,5 +1,5 @@ package = "pixcrypt" -version = "1.2-1" +version = "1.2-2" source = { url = "git+https://github.com/ttwizz/pixcrypt.git" } diff --git a/src/pixcrypt.lua b/src/pixcrypt.lua index 8a31b04..9768715 100644 --- a/src/pixcrypt.lua +++ b/src/pixcrypt.lua @@ -9,7 +9,7 @@ ]] -local pixcrypt = { Secret = 2773480762 } +local pixcrypt = {Secret = 2773480762} function pixcrypt:Encrypt(Key, String) @@ -17,8 +17,8 @@ function pixcrypt:Encrypt(Key, String) assert(type(String) == "string", "Argument 2 (String) must be a string") local Summand = #Key + math.pi * 4.3579 - local Index = 1 local Result = "" + local Index = 1 for Character in string.gmatch(Key, ".") do Summand = Summand + string.byte(Character) / 1.8602 @@ -37,8 +37,8 @@ function pixcrypt:Decrypt(Key, String) assert(type(String) == "string", "Argument 2 (String) must be a string") local Summand = #Key + math.pi * 4.3579 - local Index = 1 local Result = "" + local Index = 1 for Character in string.gmatch(Key, ".") do Summand = Summand + string.byte(Character) / 1.8602