Error CryptAES and UnZipRawMemory

Ask for help, how to use AHK_H, etc.
serzh82saratov
Posts: 137
Joined: 01 Jul 2017, 03:04

Error CryptAES and UnZipRawMemory

Post by serzh82saratov » 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.

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
큸䣠ၮﳈ岥䎏⭿♆堍毥ܨⵊ䱩亘吃萓�ం⼈懍甙梨刁�┘ኵ풙㌨眫僜噫㈡蕇ᯋᴉ翟ꈆ歖锯铬푩啹솛톲ᕠꣳ揄ጰ먊횥ヤ邾셴츌ᝬ臑뉡取ꐺꦯ쉯ヤ孤욄쌳ル뤽Ტ�∃烚췚ᐏ뉗�鍅♴꧞䂓䑀ˁ꠾艡ᱸԍ䭭쟮册ﷀ␗ঘẍ㏍㲤ᑕშ⦃➡㘆߹ꚰ羑뿰愷瘗Ʈ懵঩἗ൽ缨㻤蒣쓥뫳ग़⑺庯犨腜䤛훫椣⠁룲癷曨﵉蔎�䱽駆鞪垪ๆ뉐᠙홓껲肱ꅐ訷譪ɛ톉鞤〺䢀挻䏿ᰈ藇핝♚৫妄䁛뉷鰿偉廮檗퉃픠ੵ罢隫撗늎垗祑띒䊎젅娈볐⛴꿌伾儭㿪彞蜏䵱퓤꟠뻪逄ⶀ䬂㷟옕炢텶睃幜ᙬ➍�릾뺆퐌霼䋉⛏沋졨듯纞㗻琥袬ꪎ镯䈣爯䦝ꁞ巖䔫鳹׋ꖸ杘궛缰ꍐ떁捞ଓ洒房鏍㽉傺ె䕺੾䟋䅔웢⊕暥毫ꙙ첋庵衮慎͊᧯盓맿沇翍鶾ﮫ뾲鿛멉홑ᢑꅫ洴鄡딽᛽�謐蔛촀㩸ിᩄ鵸鸛᜗厔ꙣ瞤ᅬᬻ䆀㎑云ྶ趪奴⡓㔑ջ羚鐩懝⮝ꄿ╏ݵ贐ꁑ羑㎋⿎㸉䧇↧츚옳⥙ꭜ☊ᵈ㮳ꞹ눱疭듙➀⣸沾䖞䴹靠싋�뀰뵻癜ﴟ퍱ᨻ디ᣇ㤲ᠭ᭑懀㈯립뇼➣狅힖↘ᝉ헷��긃Ţ責烛Ⴀ吲�읒똸�홛陸㔬᠜㆞蔪履㩁�穽ᐄ鐤ꕿཱི춵�鍩닇᠕恜偣㉦眾ﭏ좍햃቗侾≂翄趌‥볁呂浃آ겪䳬㳖࿦⣡䍯赐�银ᯚ�䜘휺⃖욆叾믫깏걈⃇�ÙÙ

serzh82saratov
Posts: 137
Joined: 01 Jul 2017, 03:04

Re: Error CryptAES and UnZipRawMemory

Post by serzh82saratov » 10 Aug 2022, 12:32

It turned out that it does not work on several computers, everything is fine on others.
What could be the problem on the computer?

Post Reply

Return to “Ask for Help”