Error CryptAES and UnZipRawMemory
Posted: 01 Aug 2022, 15:02
v1.1.33.10 Win32w AutoHotkey.exe
windows 10x64
My goal is to write the text to the file, and then decipher it.
Both methods are error.
windows 10x64
My goal is to write the text to the file, and then decipher it.
Both methods are error.
Code: Select all
string:="This is a message from AutoHotkey."
sz := ZipRawMemory(string, StrLen(string) * 2, var, "password")
UnZipRawMemory(&var, sz, text, "password")
MsgBox % text
CONTINUABLE EXCEPTION_ACCESS_VIOLATION
Code: Select all
FileRead string, % A_ScriptFullPath
VarSetCapacity(str, StrLen(string) * 2)
len := StrPut(string, &str)
size := CryptAES(str, len * 2, "sdfKIop", true, 128)
FileDelete, mk.code
FileAppend % StrGet(&str), mk.code, UTF-16
FileRead string, mk.code
size := StrLen(string) * 2
CryptAES(&string, size, "sdfKIop", false, 128)
MsgBox % StrGet(&string)
ExitApp
큸䣠ၮﳈ岥䎏⭿♆堍毥ܨⵊ䱩亘吃萓�ం⼈懍甙梨刁�┘ኵ풙㌨眫僜噫㈡蕇ᯋᴉ翟ꈆ歖锯铬푩啹솛톲ᕠꣳ揄ጰ먊횥ヤ邾셴츌ᝬ臑뉡取ꐺꦯ쉯ヤ孤욄쌳ル뤽Ტ�∃烚췚ᐏ뉗�鍅♴꧞䂓䑀ˁ艡ᱸԍ䭭쟮册ﷀ␗ঘẍ㏍㲤ᑕშ⦃➡㘆߹ꚰ羑뿰愷瘗Ʈ懵ൽ缨㻤蒣쓥뫳ग़⑺庯犨腜䤛훫椣⠁룲癷曨﵉蔎�䱽駆鞪垪ๆ뉐᠙홓껲肱ꅐ訷譪ɛ톉鞤〺䢀挻䏿ᰈ藇핝♚৫妄䁛뉷鰿偉廮檗퉃픠ੵ罢隫撗늎垗祑띒䊎젅娈볐⛴꿌伾儭㿪彞蜏䵱퓤뻪逄ⶀ䬂㷟옕炢텶睃幜ᙬ➍�릾뺆퐌霼䋉⛏沋졨듯纞㗻琥袬ꪎ镯䈣爯䦝ꁞ巖䔫鳹ꖸ杘궛缰ꍐ떁捞ଓ洒房鏍㽉傺ె䕺䟋䅔웢⊕暥毫ꙙ첋庵衮慎͊᧯盓맿沇翍鶾ﮫ뾲鿛멉홑ᢑꅫ洴鄡딽�謐蔛촀㩸ിᩄ鵸鸛厔ꙣ瞤ᅬᬻ䆀㎑云ྶ趪奴⡓㔑ջ羚鐩懝⮝ꄿ╏ݵ贐ꁑ羑㎋⿎㸉䧇↧츚옳⥙ꭜ☊ᵈ㮳ꞹ눱疭듙➀⣸沾䖞䴹靠싋�뀰뵻癜ﴟ퍱ᨻ디ᣇ㤲ᠭ᭑懀㈯립뇼➣狅힖↘ᝉ헷��긃Ţ責烛Ⴀ吲�읒똸�홛陸㔬㆞蔪履㩁�穽ᐄ鐤ꕿཱི춵�鍩닇᠕恜偣㉦眾ﭏ좍햃侾≂翄趌‥볁呂浃آ겪䳬㳖⣡䍯赐�银ᯚ�䜘휺⃖욆叾믫깏걈�ÙÙ