Packetizer Forums: Packetizer Labs2024-03-19T05:56:34ZPacketizer Forumshttps://forums.packetizer.com/webmaster@packetizer.comhttps://forums.packetizer.com/feeds/?f=71Copyright (C) 2024 Packetizer, Inc. All Rights Reserved.Packetizer ATOM/RSS Feed Generatorhttps://www.packetizer.com/rss/images/packetizer.pnghttps://forums.packetizer.com/images/packetizer_icon.pngsenescenceRe: AES Crypt alternatives for Androidhttps://forums.packetizer.com/viewtopic.php?f=72&t=1484&p=3408#p34082024-02-05T17:17:41Z2024-02-05T17:17:41Z<div>For those who bump to this thread, Mixplorer file manager is another option for android, it has aescrypt built in.</div>hellosharky4567Re: AES Crypt GUI Issue with Ubuntu ARM64 Versionhttps://forums.packetizer.com/viewtopic.php?f=72&t=1763&p=3407#p34072024-02-04T14:10:52Z2024-02-04T14:10:52Z<div>I see. After speaking to my professor he was able to get an online tool that allows to access different VM's through a browser. Thank you very much!</div>paulejRe: AES Crypt GUI Issue with Ubuntu ARM64 Versionhttps://forums.packetizer.com/viewtopic.php?f=72&t=1763&p=3406#p34062024-02-03T18:36:36Z2024-02-03T18:36:36Z<div>I just sat down to look at this issue and realized that the title says ARM64. (I didn't notice that when traveling and peering into my phone screen.)<br/>
<br/>
There isn't a build for ARM, so it's no wonder you're getting these kinds of weird results. You could easily build the command-line version on ARM from the source code, but the GUI would be a bit more involved.</div>hellosharky4567Re: AES Crypt GUI Issue with Ubuntu ARM64 Versionhttps://forums.packetizer.com/viewtopic.php?f=72&t=1763&p=3403#p34032024-01-30T01:03:09Z2024-01-30T01:03:09Z<div>Hello,<br/>
<br/>
my version of Ubuntu:<br/>
Ubuntu 22.04.3 LTS<br/>
Release: 22.04<br/>
Codename: jammy<br/>
<br/>
The desktop manager:<br/>
Ubuntu: GNOME<br/>
<br/>
I plan on talking to my professor tomorrow about the issues ive been facing.<br/>
Thank you very much paulej!</div>paulejRe: AES Crypt GUI Issue with Ubuntu ARM64 Versionhttps://forums.packetizer.com/viewtopic.php?f=72&t=1763&p=3402#p34022024-01-29T19:51:34Z2024-01-29T19:51:34Z<div>Wow, that's some strange output. I've never seen the before. I can give it a try this weekend if you tell me what version of Ubuntu you're using. Also, what desktop manager?</div>hellosharky4567Re: AES Crypt GUI Issue with Ubuntu ARM64 Versionhttps://forums.packetizer.com/viewtopic.php?f=72&t=1763&p=3401#p34012024-01-29T18:42:01Z2024-01-29T18:42:01Z<div>I run the <CODE><s>[code]</s>chmod 755 AESCrypt-GUI-3.11-Linux-x86_64-Install [/code]</CODE>command and then run <CODE><s>[code]</s>sudo ./AESCrypt-GUI-3.11-Linux-x86_64-Install[/code]</CODE>. I get this really weird error: <br/>
<br/>
./AESCrypt-GUI-3.11-Linux-x86_64-Install: 1: : not found<br/>
./AESCrypt-GUI-3.11-Linux-x86_64-Install: 2: ���O@@��w: not found<br/>
�@�Ɂ: Directory nonexistent86_64-Install: 2: cannot create ����/�<br/>
./AESCrypt-GUI-3.11-Linux-x86_64-Install: 1: cannot create A�6��@/��<br/>
G: Directory nonexistent<br/>
./AESCrypt-GUI-3.11-Linux-x86_64-Install: 2: P�td�@ڻ��: not found<br/>
./AESCrypt-GUI-3.11-Linux-x86_64-Install: 9: Syntax error: ")" unexpected<br/>
<br/>
I was able to get the command line version to work on my Ubuntu. However, for my college class it is needed that I download the GUI version onto my Ubuntu VM.</div>paulejRe: AES Crypt GUI Issue with Ubuntu ARM64 Versionhttps://forums.packetizer.com/viewtopic.php?f=72&t=1763&p=3400#p34002024-01-29T18:15:34Z2024-01-29T18:15:34Z<div>If I recall correctly, the installer doesn't have execute permission once extracted. Try changing the permissions using "chmod 755" with the filename following. You should then be able to invoke it.<br/>
<br/>
Since you're on a Mac, there is a command line version you can download for the M1. Just out that in your path somewhere (/usr/local/bin/ is good). You could then run it from the terminal. That would be much easier than a VM.</div>hellosharky4567AES Crypt GUI Issue with Ubuntu ARM64 Versionhttps://forums.packetizer.com/viewtopic.php?f=72&t=1763&p=3399#p33992024-01-29T05:18:10Z2024-01-29T05:18:10Z<div>Hello!<br/>
<br/>
I'm currently trying to download AES Crypt GUI onto my Ubuntu device I do everything that is asked in the documentation and follow the directions. However when I use the command <CODE><s>[code]</s>./AESCrypt-GUI-1.0-Linux-x86_64-Install[/code]</CODE> I get an error "bash: ./AESCrypt-GUI-1.0-Linux-x86_64-Install: No such file or directory". I then typed in the command <CODE><s>[code]</s>ldd AESCrypt-GUI-1.0-Linux-x86_64-Install[/code]</CODE> I get back "not a dynamic executable". I'm not entirely sure as what I can do, I was able to download the terminal version of AESCrypt, but my class requires me to get the GUI version. <B><s>[b]</s>I also wanna make note I have a MacBook Pro running on M1 Chip, so I had to download the Ubuntu Arm64 version onto vmware. [/b]</B> <br/>
<br/>
version of Ubuntu I run on VMWare Fusion.<br/>
5.15.0-92-generic #102-Ubuntu SMP Wed Jan 10 09:37:39 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux<br/>
<br/>
No LSB modules are available.<br/>
Distributor ID: Ubuntu<br/>
Description: Ubuntu 22.04.3 LTS<br/>
Release: 22.04</div>paulejRe: Overwrite existing file - AES Crypt Errorhttps://forums.packetizer.com/viewtopic.php?f=72&t=1459&p=3355#p33552023-11-22T03:10:26Z2023-11-22T03:10:26Z<div>Sounds like you got it all working! Congratulations!</div>francRe: Overwrite existing file - AES Crypt Errorhttps://forums.packetizer.com/viewtopic.php?f=72&t=1459&p=3354#p33542023-11-21T17:20:53Z2023-11-21T17:20:53Z<div>OK, done!<br/>
The crucial function is indeed that <a href="https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-createfilew"><s>[url=https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-createfilew]</s>CreateFileW (fom Windows API)[/url]</a> and the param <B><s>[b]</s>dwCreationDisposition[/b]</B><br/>
I changed the code as this: In <B><s>[b]</s>AESCryptWorkerThreads.cpp[/b]</B> I changed in line 392 <B><s>[b]</s>CREATE_NEW [/b]</B>to <B><s>[b]</s>CREATE_ALWAYS[/b]</B>:
<CODE><s>[code]</s><i>
</i> result_code = out_buffered_file.OpenFile(
out_file.c_str(),
true,
CREATE_ALWAYS);
[/code]</CODE>
and in line 986 same, from <B><s>[b]</s>CREATE_NEW [/b]</B>to <B><s>[b]</s>CREATE_ALWAYS[/b]</B>:
<CODE><s>[code]</s> result_code = out_buffered_file.OpenFile( out_file,
true,
CREATE_ALWAYS);
[/code]</CODE>
(One is for overwrite existing aes on crypt, one is to overwrite existing file on decrypt)<br/>
Then I compiled it, AESCrypt (the DLL), AESCrypt32 (the GUI) and Console (exe).<br/>
Deleted prefetch and voila, works flawless :)<br/>
<br/>
What the heck this AESCryptPS is, I dont know, cannot compile it, I guess it is ARM stuff. Never mind.<br/>
Thanks.</div>francRe: Overwrite existing file - AES Crypt Errorhttps://forums.packetizer.com/viewtopic.php?f=72&t=1459&p=3353#p33532023-11-21T14:24:19Z2023-11-21T14:24:19Z<div>OK, got it :)<br/>
I had to switch all projects to 2012 Tools (or 2010 Tools):<br/>
<ATTACHMENT filename="AESCrypt Property Pages.png" index="0"><s>[attachment=0]</s>AESCrypt Property Pages.png[/attachment]</ATTACHMENT>
And I just deleted in some project file the rpcndr.lib and now I can compile it with VS2022 :)<br/>
Now lets see how I can handle the CREATE_ALWAYS instead of CREATE_NEW as dwCreationDisposition in OpenFile aka CreateFileW...<br/>
<br/>
EDIT: by the way, when I switch to EN as VS2022 language (instead of the system language), the Property Pages dialog is crippled, showing only Code Analysis, this is a wellknown (and never fixed) bug of VS, e.g.: <a href="https://developercommunity.visualstudio.com/t/Empty-property-page-when-in-different-la/797367"><s>[url=https://developercommunity.visualstudio.com/t/Empty-property-page-when-in-different-la/797367]</s>Empty property page when in different languages[/url]</a></div>francRe: Overwrite existing file - AES Crypt Errorhttps://forums.packetizer.com/viewtopic.php?f=72&t=1459&p=3352#p33522023-11-21T10:59:35Z2023-11-21T10:59:35Z<div>OK, I installed Visual Studio 2010 C++ Express from <a href="https://my.visualstudio.com/Downloads?q=visual%20studio%202010&wt.mc_id=o~msft~vscom~older-downloads"><s>[url=https://my.visualstudio.com/Downloads?q=visual%20studio%202010&wt.mc_id=o~msft~vscom~older-downloads]</s>Visual Studio Subscriptions[/url]</a> and still I get an error about Setup.vdproj, as if even 2010 seems too new :)
<ATTACHMENT filename="2023-11-21_11-33-02.png" index="0"><s>[attachment=0]</s>2023-11-21_11-33-02.png[/attachment]</ATTACHMENT>
But I didnt install then 2008 Express, unsure if it would work anyway.<br/>
<br/>
I tried to compile then (with VS 2010 or 2022) any of the other projects, and only the Console project compiles, but none of the other projects, I get e.g. this error with VS2010:<br/>
"error MSB8008: Specified platform toolset (v143) is not installed or invalid" - do I need for that the Visual Studio 2010 Software Development Kit (SDK)?<br/>
With VS2022 I get a bunch of errors, see above.<br/>
<br/>
The code is from 2015, by the way. That "to-do list" must be really huge ;)<br/>
<br/>
I give up here. Without any compiling how-to (what <B><s>[b]</s>exactly [/b]</B>is needed, which version <B><s>[b]</s>exactly[/b]</B>, etc.) I guess I will spend the other half day without any guarantee of success. <br/>
<br/>
So if you really re-start to code that project one day, I think the first thing should be to make it possible to compile it with the actual Visual Studio Community 2022 - or 2025 at this time then, I guess ;)<br/>
Thanks anyway!<br/>
<br/>
Addendum: Errors at compiling the project with VS2022:<br/>
<CODE><s>[code]</s>Build started at 13:12...
1>------ Build started: Project: AESCryptPS, Configuration: Debug x64 ------
2>------ Build started: Project: AESCrypt, Configuration: Debug x64 ------
1>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(531,5): warning MSB8028: The intermediate directory (x64\Debug\) contains files shared from another project (AESCrypt.vcxproj). This can lead to incorrect clean and rebuild behavior.
1>Checking for required files
2>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(531,5): warning MSB8028: The intermediate directory (x64\Debug\) contains files shared from another project (AESCryptPS.vcxproj). This can lead to incorrect clean and rebuild behavior.
2>cl : command line warning D9035: option 'Gm' has been deprecated and will be removed in a future release
1>LINK : fatal error LNK1104: cannot open file 'rpcndr.lib'
1>Done building project "AESCryptPS.vcxproj" -- FAILED.
2>stdafx.cpp
2>D:\Projekte\AESCrypt\AESCrypt_source_v310\AESCrypt\stdafx.h(44,25): error C2039: 'basic_string': is not a member of 'std'
2>(compiling source file 'stdafx.cpp')
2>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\include\list(23,1):
2>see declaration of 'std'
2>D:\Projekte\AESCrypt\AESCrypt_source_v310\AESCrypt\stdafx.h(44,25): error C2065: 'basic_string': undeclared identifier
2>(compiling source file 'stdafx.cpp')
2>D:\Projekte\AESCrypt\AESCrypt_source_v310\AESCrypt\stdafx.h(44,38): error C2275: 'TCHAR': expected an expression instead of a type
2>(compiling source file 'stdafx.cpp')
2>D:\Projekte\AESCrypt\AESCrypt_source_v310\AESCrypt\stdafx.h(44,14): error C2974: 'std::list': invalid template argument for '_Ty', type expected
2>(compiling source file 'stdafx.cpp')
2>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\include\list(755,12):
2>see declaration of 'std::list'
2>D:\Projekte\AESCrypt\AESCrypt_source_v310\AESCrypt\stdafx.h(44,14): error C2976: 'std::list': too few template arguments
2>(compiling source file 'stdafx.cpp')
2>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\include\list(755,12):
2>see declaration of 'std::list'
2>D:\Projekte\AESCrypt\AESCrypt_source_v310\AESCrypt\stdafx.h(44,45): error C2059: syntax error: '>'
2>(compiling source file 'stdafx.cpp')
2>Done building project "AESCrypt.vcxproj" -- FAILED.
3>------ Build started: Project: AESCrypt32, Configuration: Debug x64 ------
3>cl : command line warning D9035: option 'Gm' has been deprecated and will be removed in a future release
3>stdafx.cpp
3>D:\Projekte\AESCrypt\AESCrypt_source_v310\AESCrypt32\stdafx.h(45,25): error C2039: 'basic_string': is not a member of 'std'
3>(compiling source file 'stdafx.cpp')
3>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\include\list(23,1):
3>see declaration of 'std'
3>D:\Projekte\AESCrypt\AESCrypt_source_v310\AESCrypt32\stdafx.h(45,25): error C2065: 'basic_string': undeclared identifier
3>(compiling source file 'stdafx.cpp')
3>D:\Projekte\AESCrypt\AESCrypt_source_v310\AESCrypt32\stdafx.h(45,38): error C2275: 'TCHAR': expected an expression instead of a type
3>(compiling source file 'stdafx.cpp')
3>D:\Projekte\AESCrypt\AESCrypt_source_v310\AESCrypt32\stdafx.h(45,14): error C2974: 'std::list': invalid template argument for '_Ty', type expected
3>(compiling source file 'stdafx.cpp')
3>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\include\list(755,12):
3>see declaration of 'std::list'
3>D:\Projekte\AESCrypt\AESCrypt_source_v310\AESCrypt32\stdafx.h(45,14): error C2976: 'std::list': too few template arguments
3>(compiling source file 'stdafx.cpp')
3>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\include\list(755,12):
3>see declaration of 'std::list'
3>D:\Projekte\AESCrypt\AESCrypt_source_v310\AESCrypt32\stdafx.h(45,45): error C2059: syntax error: '>'
3>(compiling source file 'stdafx.cpp')
3>Done building project "AESCrypt32.vcxproj" -- FAILED.
========== Build: 0 succeeded, 3 failed, 1 up-to-date, 0 skipped ==========
========== Build completed at 13:12 and took 02,706 seconds ==========[/code]</CODE></div>paulejRe: Overwrite existing file - AES Crypt Errorhttps://forums.packetizer.com/viewtopic.php?f=72&t=1459&p=3351#p33512023-11-20T04:14:16Z2023-11-20T04:14:16Z<div><QUOTE author="franc" post_id="3348" time="1700400312" user_id="2818"><s>[quote=franc post_id=3348 time=1700400312 user_id=2818]</s>
The file exists, do you want to overwrite it?<br/>
Yes / No
</blockquote>
Yeah, that's on my list. It's risky, though, as I know someone will accidentally delete a file. But, it would be a good addition.</div>paulejRe: Overwrite existing file - AES Crypt Errorhttps://forums.packetizer.com/viewtopic.php?f=72&t=1459&p=3350#p33502023-11-20T04:11:01Z2023-11-20T04:11:01Z<div>Honestly, I still go back to using VS 2010. The reason is the integrated installer.<br/>
<br/>
What I need to do is update the code to use a newer installer.<br/>
<br/>
All in due time, but for now I just use the older compiler.<br/>
<br/>
That said, if you want to just build and not create an install package, I suspect it would. You might need to remove the installer project.</div>francRe: Overwrite existing file - AES Crypt Errorhttps://forums.packetizer.com/viewtopic.php?f=72&t=1459&p=3349#p33492023-11-19T20:25:55Z2023-11-19T20:25:55Z<div>Or, is there a How-To for compiling AESCrypt for Windows W11?<br/>
I found the source code but I read Visual Studio 2010, I have 2022, Build Tools does not fit etc.<br/>
If I could compile it by myself then I could create a Dialog for "Overwrite? Yes/No" or just hardcode overwriting (which I only need).<br/>
<br/>
Thanks for hints. But I begin to doubt that this code and forum is still active :(</div>francRe: Overwrite existing file - AES Crypt Errorhttps://forums.packetizer.com/viewtopic.php?f=72&t=1459&p=3348#p33482023-11-19T13:25:12Z2023-11-19T13:25:12Z<div>Thanks again!<br/>
I stumbled on this question of mine again, still having that same issue.<br/>
<br/>
I would love to have a CheckBox to accept overwrite on encrypt, e.g.:<br/>
<br/>
The file exists, do you want to overwrite it?<br/>
Yes / No<br/>
<br/>
At the moment I have to do it manually, but this is annoying with the totalcmd comments, I have to copy them manually as well.<br/>
Thanks<br/>
frank</div>paulejRe: Does AESCrypt work on MAC Ventura (OSX 13.x)?https://forums.packetizer.com/viewtopic.php?f=72&t=1682&p=3305#p33052023-10-05T03:57:26Z2023-10-05T03:57:26Z<div>I tried that tonight, but it still demanded Rosetta. I think it's the droplet code that allows one to drag and drop.<br/>
<br/>
Anyway, it appears to work on the latest OS, but requires Rosetta on the M1 processor. I'll see if I can get the build updated to not require Rosetta on the M1 and M2 processors.</div>nikki970Re: Does AESCrypt work on MAC Ventura (OSX 13.x)?https://forums.packetizer.com/viewtopic.php?f=72&t=1682&p=3304#p33042023-10-05T01:19:04Z2023-10-05T01:19:04Z<div>thanks so much. I never thought of that. really nice of you:-)<br/>
nikki</div>paulejRe: Does AESCrypt work on MAC Ventura (OSX 13.x)?https://forums.packetizer.com/viewtopic.php?f=72&t=1682&p=3303#p33032023-10-05T00:42:26Z2023-10-05T00:42:26Z<div>It should work, but it doesn't work by trying to click on the app. It's intended to work by putting the lock icon on the dock and then dragging/dropping the file to be encrypted or decrypted onto the lock.<br/>
<br/>
See the user guide for more details: <a href="https://www.aescrypt.com/documentation/AES%20Crypt%20User%20Guide.pdf">https://www.aescrypt.com/documentation/AES%20Crypt%20User%20Guide.pdf</a><br/>
<br/>
If you have an M1 or M2 processor, you can replace the aescrypt binary extracted from the dmg file with this one: <a href="https://www.aescrypt.com/download/v3/mac/aescrypt_mac_v316_m1m2.tgz">https://www.aescrypt.com/download/v3/mac/aescrypt_mac_v316_m1m2.tgz</a>. That is just the binary, not the entire package. However, replacing it should not be required.</div>nikki970Does AESCrypt work on MAC Ventura (OSX 13.x)?https://forums.packetizer.com/viewtopic.php?f=72&t=1682&p=3302#p33022023-10-04T19:52:13Z2023-10-04T19:52:13Z<div>i believe i did the install correctly: downloaded AES Crypt - GUI (Mac x64). Opened AESCrypt_mac_gui_v314.1_x64.dmg to create app in Applications folder. System Security level is "App Store and Identified Developers"). So I cntrl-rightclick to open AESCrypt. Get warning "macos cannot verify the developer...use at own risk." Click OPEN. Nothing happens. If I continue to cntrl-rightclick app, I get message "Press OK to run this script". After clicking OK, nothing happens. Nothing related to AEScrypt appears to be running.<br/>
<br/>
Has anyone else have successfully used AESCrypt on Ventura? <br/>
<br/>
thanks<br/>
nikki</div>winfriedRe: AESCRYPT DO NOT OPENhttps://forums.packetizer.com/viewtopic.php?f=72&t=1435&p=3296#p32962023-09-14T07:08:27Z2023-09-14T07:08:27Z<div>I had an idea while waking up this morning :-) See if it was because I was still using an old, 32-bit version of Total Commander.<br/>
<br/>
Turns out that's what it was: Trying the latest, 64-bit release works fine.<br/>
<br/>
Thank you.</div>paulejRe: AESCRYPT DO NOT OPENhttps://forums.packetizer.com/viewtopic.php?f=72&t=1435&p=3295#p32952023-09-14T05:04:58Z2023-09-14T05:04:58Z<div>I've never seen that X64 menu before. Is that created by some other application?<br/>
<br/>
Anyway, on 64-bit Windows you 10 or 11, one should run only the 64-bit version of aescrypt.msi. it will install a context menu similar to this. On Windows 10, it would be in the main list. On Windows 11, Microsoft moved it, so one has to choose "Show more options". There, one should see "AES Enrypt" or "AES Decrypt" as choices when right-clicking on a file.<br/>
<br/>
Are you right-clicking on a file to get that menu? Do you have 64-bit Windows? (If 32-bit Windows 10, you need to install the 32-bit aescrypt.msi.)<br/>
<br/>
Once selecting "AES Encrypt", a dialog box should open promoting for a password.</div>winfriedRe: AESCRYPT DO NOT OPENhttps://forums.packetizer.com/viewtopic.php?f=72&t=1435&p=3294#p32942023-09-13T22:52:53Z2023-09-13T22:52:53Z<div>Hello,<br/>
<br/>
On a new Windows10 computer, I installed AES Crypt using AESCrypt_v310_x64.zip. I got no error, so I guess it's OK.<br/>
<br/>
But when right-clicking on a file > X64 > AES Crypt, nothing happens. Likewise, when right-clicking on an .AES file > X64 > AES Decrypt, nothing happens.<br/>
<br/>
Rebooting didn't solve it.<br/>
<br/>
What could it be?<br/>
<br/>
Thank you.</div>winfriedAutoIT Script for Windows Usershttps://forums.packetizer.com/viewtopic.php?f=72&t=1676&p=3290#p32902023-09-06T10:57:41Z2023-09-06T10:57:41Z<div>For Windows users, here's an Autoit script that 1) prompts the user for the password and the AES-encrypted file, and 2) decrypts it, opens the default text editor, and pastes the output therein:<br/>
<CODE><s>[code]</s>;Edit the following line to match the notepad.exe on your computer:
;WinWait("[TITLE:Untitled - Notepad2-mod; CLASS:Notepad2]")
#include <Array.au3>
#include <AutoItConstants.au3>
#include <Constants.au3>
#include <File.au3>
#include <FileConstants.au3>
#include <Misc.au3>
#include <MsgBoxConstants.au3>
#include <StringConstants.au3>
Const $APP = "c:\Apps\AES\aescrypt.exe"
;Prompt for password
Local $sPassword = InputBox("Password","Type password")
if not $sPassword Then Exit ConsoleWrite("Closed inputbox" & @CRLF)
$sPassword = StringStripWS($sPassword,$STR_STRIPLEADING + $STR_STRIPTRAILING + $STR_STRIPSPACES)
Const $PARAMS = " -d -p " & $sPassword & " -o - "
;choose input file
Local $sFileOpenDialog = FileOpenDialog("Choose file", @ScriptDir, "AES (*.aes)", $FD_FILEMUSTEXIST)
If @error Then Exit MsgBox($MB_SYSTEMMODAL, "", "No file selected.")
Local $szDrive, $szDir, $szFName, $szExt
_PathSplit($sFileOpenDialog, $szDrive, $szDir, $szFName, $szExt)
Const $OUTPUTDIR = $szDrive & $szDir
Const $INPUTFILE = $szFName & $szExt
Local $WholeLine = StringFormat("%s %s %s", $APP, $PARAMS, $INPUTFILE)
FileChangeDir($OUTPUTDIR)
;run CLI app
Local $iPID = Run($WholeLine, $szDir, @SW_HIDE,$STDOUT_CHILD)
If @error Then Exit MsgBox($MB_ICONERROR, "Error", "Install failed.")
Local $sOutput = StdoutRead($iPID)
If @error Then Exit ConsoleWrite("Error returned by StdOutRead! @error=" & @error & ", @extended=" & @extended & @CRLF)
While True
$sOutput &= StdoutRead($iPID)
If @error Then ExitLoop
ConsoleWrite($sOutput & @CRLF)
WEnd
;Poor man's search: copy STDOUT into clipboard, launch Notepad, paste
ClipPut($sOutput)
$iPID = Run("notepad.exe")
Opt("WinTitleMatchMode", 2) ;1=start, 2=subStr, 3=exact, 4=advanced, -1 to -4=Nocase
WinWait("[TITLE:Untitled - Notepad2-mod; CLASS:Notepad2]")
Sleep(500)
Send("^v") ;paste
Sleep(500)
Send("^{HOME}") ;jump to first line in notepad[/code]</CODE></div>paulejRe: Strange behaviour, running from a bash script.https://forums.packetizer.com/viewtopic.php?f=72&t=1675&p=3289#p32892023-09-05T17:34:25Z2023-09-05T17:34:25Z<div>I tinkered with the script a little. I made some changes, just to avoid me having to re-enter the password every time I encrypt or decrypt. If you're using a multi-user machine, you probably will want to not use the -p option since it will show the password when running ps. I use -p since I'm the only user on my machine.<br/>
<br/>
I removed the file wipe, since I know it definitely won't do anything but wear out my SSD more quickly. :)<br/>
<br/>
Anyway, this seemed to work fine for me. It's definitely in the spirit of what you had, though I did add some additional safety procedures (backing up the original .aes file, restoring it, and trapping some signals to ensure proper cleanup).<br/>
<CODE><s>[code]</s><i>
</i>#!/bin/bash
#
# View/Edit an AES Crypt-encrypted file
#
EDITOR=vim
TMPFILE=/tmp/cryptedit.$$
BKUPFILE=/tmp/cryptedit.bkup.$$
trap "rm -f $TMPFILE $BKUPFILE" 2 3
if [[ $# != 1 ]] ; then
echo 'cryptedit <filename>'
exit
fi
AES_FILE=$1
if [ ! -f "$AES_FILE" ] ; then
echo No such file: $1
exit
fi
read -s -p "Enter Password: " password
echo
aescrypt -d -p "$password" -o $TMPFILE "$AES_FILE" || {
echo "Failed to decrypt file: $AES_FILE"
exit
}
# Calculate md5 of decrypted file
md5f1=$(md5sum $TMPFILE | cut -d' ' -f1)
# View and maybe edit it
$EDITOR $TMPFILE
# Recalculate md5 again to detect any saved changes
md5f2=$(md5sum $TMPFILE | cut -d' ' -f1)
# Warn and/or re-encrypt? Also asking for password/key
if [ "$md5f1" != "$md5f2" ]; then
echo "!!File HAS CHANGED!!"
read -e -p 'Re-encrypt with changes (y/N) ? ' choice
[[ "$choice" =~ [Yy] ]] && {
echo re-encrypting...
# Backup the original file
cat "$AES_FILE" >"$BKUPFILE"
aescrypt -e -p "$password" -o "$AES_FILE" "$TMPFILE" || {
# Restore backup file
cat 2>/dev/null "$BKUPFILE" >"$AES_FILE"
echo "Encryption failed"
}
}
fi
rm -f $TMPFILE
rm -f $BKUPFILE
[/code]</CODE></div>paulejRe: Strange behaviour, running from a bash script.https://forums.packetizer.com/viewtopic.php?f=72&t=1675&p=3288#p32882023-09-05T11:44:49Z2023-09-05T11:44:49Z<div>Part of the question is easy to answer: if the Linux command-line aescrypt succeeds, it returns 0. Any other return value indicates a failure. Generally, it's just -1 returned on error, but not a guarantee.<br/>
<br/>
While not part of your question, I noted the attempt to erase over the plaintext file at the end. That works fine on magnetic drives, but it will not generally work on SSDs. On many SSDs, writing is done to a different portion of the drive to even wearing. This results in the encrypted data still on the disk and wasted writes (and wear) to another portion of the disk. See: <a href="https://en.wikipedia.org/wiki/Wear_leveling">https://en.wikipedia.org/wiki/Wear_leveling</a>.<br/>
<br/>
I'll tinker with your script later, but I didn't see anything that stood out (aside from checking for errors).</div>davethebritStrange behaviour, running from a bash script.https://forums.packetizer.com/viewtopic.php?f=72&t=1675&p=3287#p32872023-09-05T08:19:06Z2023-09-05T08:19:06Z<div>Hi.<br/>
<br/>
Firstly, thanks for letting me register, and of course for AESCrupt tool, that I've been using off and on for some years now, Windows and Linux.<br/>
<br/>
These days, 99.99% of the time I use Linux (currently LMDE 5 64 bit on an Intel based machine.)<br/>
<br/>
I have a script (code at the end of this mail) that I use, to automate the decrypting what is in effect "my secret info", launch an editor to view/update said data file, then when that is exited, if the plaintext file has changed, to re-encrypt it again.<br/>
Then overwrite the plaintext and delete it. The PC uses classic roatating rust type mass storage...<br/>
<br/>
The .aes file is a little under 50k in size at present.<br/>
<br/>
All that worked well for the last few years, but now after some kernel update or whatever, I often as not get a partial decryption, with the rest of the plain text file full of "junk".<br/>
<br/>
Of course I abort the process, the script checks that the plaintext file has not changed and just exits.<br/>
<br/>
If I use AESCrypt manually from the command line on the SAME .aes file as the script was using, it decrypts just fine 100% of the time without issue, and I can then view/edit it as needed, etc etc...<br/>
<br/>
Reading the AESCrypt online document file, I have not seen anything that indicates if or what the Linux command line executable returns to the shell in the way of result/error codes. I presume it does, but as yet, I've not found the info.<br/>
(Mind you, it wouldnt be the first time I've missed "hidden in plain view" info. Mk1 aged eyes and faded grey cell etc...)<br/>
<br/>
Anyway.. Are there any recomended ways/methods to use AESCrypt in such an automated way, that prevents such wierdness.<br/>
Or specificaly what NOT to do! :lol: <br/>
In particular, to make sure the decryption process has fully completed, before launching the editor. (I am not a seasoned shell scripting type.)<br/>
<br/>
As before, it all ran fine up 'till recently, as I originally created the script on Linux Mint 19.3 last year, plus it worked well at first on LMDE (Linux Mint Debian Edition) v5 up to about a month ago. Both OS's 64 bit running on an Intel i3 box. (The same hardware after upgrade due to Mint 19.3 falling out of support. The machine is maxed out at 8G RAM rarely over 50% used, and even then, no noticed performance issues.)<br/>
<br/>
Any advice / hints welcome.<br/>
<br/>
Regards To All.<br/>
<br/>
Dave.<br/>
<br/>
<br/>
System details:-<br/>
Linux hp-compaq-sfdt 5.10.0-25-amd64 #1 SMP Debian 5.10.191-1 (2023-08-16) x86_64 GNU/Linux<br/>
<br/>
CPU:<br/>
Info: Quad Core model: Intel Core i5-2400S bits: 64 type: MCP arch: Sandy Bridge rev: 7 L2 cache: 6 MiB <br/>
flags: avx lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 19957 <br/>
Speed: 2806 MHz min/max: 1600/3300 MHz Core speeds (MHz): 1: 2806 2: 2787 3: 2741 4: 2771 <br/>
<br/>
My script below.... (No passwords included!)
<CODE><s>[code]</s><i>
</i>#!/bin/bash
# Declare a funciton to ask for a key, encrypt and rename.
encrypt () {
aescrypt -e ~/Documents/tmp.txt
mv ~/Documents/tmp.txt.aes ~/Documents/test-text.txt.aes
}
# make backup of .aes file.
cp ~/Documents/test-text.txt.aes ~/Documents/test-text-backup.txt.aes
# decrypt original .aes file and display. AESCrypt asks for password/key
aescrypt -d -o - ~/Documents/test-text.txt.aes > ~/Documents/tmp.txt
# Calculate md5 of decrypted file
md5f1=$(md5sum ~/Documents/tmp.txt | cut -d' ' -f1)
# view and maybe edit it
xed ~/Documents/tmp.txt
# recalculate md5 again to detect any saved changes
md5f2=$(md5sum ~/Documents/tmp.txt | cut -d' ' -f1)
# warn and/or re-encrypt? Also asking for password/key
if [ "$md5f1" != "$md5f2" ]; then
echo "!!File HAS CHANGED!!"
read -e -p "Re-Encrypt with changes (y/N) ? " choice
[[ "$choice" != [Yy]* ]] && echo "do nowt" || encrypt
fi
echo "Erasing Temp File"
# overwrite temp file with random data (1 megabyte for now) then delete.
head -c 1M </dev/urandom >~/Documents/tmp.txt
# for some sort of security
rm ~/Documents/tmp.txt
exit
[/code]</CODE>
>> end <<</div>stalk01Re: How to build AES Crypt for Android shared Library ( JNI )https://forums.packetizer.com/viewtopic.php?f=72&t=360&p=3264#p32642023-07-07T11:44:17Z2023-07-07T11:44:17Z<div><QUOTE author="muzamil321" post_id="3258" time="1686765232" user_id="3229"><s>[quote=muzamil321 post_id=3258 time=1686765232 user_id=3229]</s>
It seems like the iconv library is missing in your project. Please ensure that this library is correctly installed and your project is properly referencing it. Also, remember to update your minSdkVersion if you're using features not available in Android 8.
</blockquote>
<a href="https://modpapa.com/shadow-fight-2/"><s>[url=https://modpapa.com/shadow-fight-2/]</s><COLOR color="#000000"><s>[color=#000000]</s><SIZE size="1"><s>[size=1]</s>shadow fight 2 mod apk[/size]</SIZE>[/color]</COLOR>[/url]</a><br/>
Is the iconv library installed correctly in your project and have you ensured proper installation and referencing? Did you update minSdkVersion for Android 8 compatibility? Can you please elaborate on the process of this?</div>rohanbarbRe: How to build AES Crypt for Android shared Library ( JNI )https://forums.packetizer.com/viewtopic.php?f=72&t=360&p=3261#p32612023-06-21T06:15:47Z2023-06-21T06:15:47Z<div><QUOTE author="paulej" post_id="3234" time="1681271529" user_id="2"><s>[quote=paulej post_id=3234 time=1681271529 user_id=2]</s>
Does this help?<br/>
<br/>
<a href="http://danilogiulianelli.blogspot.com/2012/12/how-to-cross-compile-libiconv-for.html?m=1">http://danilogiulianelli.blogspot.com/2012/12/how-to-cross-compile-libiconv-for.html?m=1</a>
</blockquote>
Hi, I tried this method with gkbrown's changes and at first it didn't work. I needed ARMv7a But it only compiled for ARMv5 even with TARGET_ARCH_ABI := all. The thing is that you should apparently not set target arch this way. Add a file 'Application.mk' with:<br/>
<a href="https://nullsbrawl.org/"><s>[url=https://nullsbrawl.org/]</s><SIZE size="1"><s>[size=1]</s>Nulls brawl[/size]</SIZE>[/url]</a><br/>
APP_ABI := all<br/>
<br/>
and remove TARGET_ARCH_ABI line. Now ndk-build will build for all targets :)</div>natasha78Re: How to build AES Crypt for Android shared Library ( JNI )https://forums.packetizer.com/viewtopic.php?f=72&t=360&p=3260#p32602023-06-16T07:20:47Z2023-06-16T07:20:47Z<div>hello guys,<br/>
Follow these steps to create AES Crypt for Android shared library (JNI):<br/>
<br/>
Create an Android development environment.<br/>
In C/C++, implement the AES Crypt encryption and decryption routines.<br/>
Make a JNI wrapper to connect the C/C++ code to Java.<br/>
Using the Android NDK, create the shared library.<br/>
In your Android project, include the shared library and use the JNI functions for AES encryption and decryption.<SIZE size="1"><s>[SIZE=1]</s><a href="https://fmapps.org/"><s>[URL="https://fmapps.org/"]</s><COLOR color="#FFFFFF"><s>[COLOR="#FFFFFF"]</s>Fm whatsapp[/COLOR]</COLOR>[/url]</a>[/SIZE]</SIZE></div>