diff --git a/OpenBullet/LSDoc.xml b/OpenBullet/LSDoc.xml index 4f9fb2e..a2c1fc1 100644 --- a/OpenBullet/LSDoc.xml +++ b/OpenBullet/LSDoc.xml @@ -243,6 +243,7 @@ FUNCTION RandomNum 0 100 -> VAR "RANDOM" FUNCTION CountOccurrences "tofind" "input" -> VAR "COUNT" FUNCTION CharAt "index" "input" -> VAR "CHAR" FUNCTION Substring "startindex" "length" "input" -> VAR "SUBSTRING" +FUNCTION AesEncrypt "secretkey" "secretmessage" -> VAR "ENCRYPTED" This will spawn and execute a Keycheck Block. diff --git a/RuriLib/Blocks/BlockFunction.cs b/RuriLib/Blocks/BlockFunction.cs index 77f7cf4..15b4a8e 100644 --- a/RuriLib/Blocks/BlockFunction.cs +++ b/RuriLib/Blocks/BlockFunction.cs @@ -354,6 +354,11 @@ namespace RuriLib RSAExp = LineParser.ParseLiteral(ref input, "Exponent"); break; + case Function.AESDecrypt: + case Function.AESEncrypt: + AesKey = LineParser.ParseLiteral(ref input, "AES Key"); + break; + default: break; } @@ -464,6 +469,12 @@ namespace RuriLib .Literal(RSAMod) .Literal(RSAExp); break; + + case Function.AESDecrypt: + case Function.AESEncrypt: + writer + .Literal(AesKey); + break; } writer