Jump to content

drov

Members
  • Posts

    6
  • Joined

  • Last visited

Recent Profile Visitors

32 profile views

drov's Achievements

  1. Hi, sorry about the delay I got a bit busy. So I used gpg which took me a lonnnng time to automate but here it's finally done : most script commands ; get public&private : ;gpg --export-secret-key -a > private ; gpg --export -a > public ; crypt : ; gpg --import public.key ;gpg -e -r "tester" -u "tester" --trust-model always luv.docx ;luv being my file ;decrypt : ; gpg --import private.key ; gpg --passphrase abc -d luv.docx.gpg > luv.docx ;generate keys runwait("cmd /c "&$gpg&" --gen-key --batch < "&$test) and I just automated that with cmd like this : run("cmd /c "&$gpg&" --list-key") ; example to list the keys with @swHide it can be silent test contains this : you can read more about it here : https://www.gnupg.org/documentation/manuals/gnupg-devel/Unattended-GPG-key-generation.html ( read the whole doc it's really interesting) and for debugging purposes dont forget to add "&pause" in the cmd expression it helps a lot example : run("cmd /c "&$gpg&" --list-key & pause")
  2. Yes I know, I'm pretty sad because that's the only func I found, I'm gonna use inline gpg crypt I think, I will post what I have found later for the future users
  3. the code/data is basically the "test.au3" file found here : '?do=embed' frameborder='0' data-embedContent>> the code itself : #compiler_plugin_funcs = RSA_GenerateKeys, RSA_Encrypt, RSA_Decrypt $plug = PluginOpen(@ScriptDir & "\rsa.dll") SplashTextOn("RSA", "Generating Key", 200, 25) RSA_GenerateKeys(64, "C:\", "peethebee") SplashTextOn("RSA", "Encrypting...", 200, 25) $enc = RSA_Encrypt("This is a simple test of the RSA plugin for AutoIt by peethebee", "C:\\peethebee.pubkey") SplashOff() MsgBox(0, "Encrypted", $enc) SplashTextOn("RSA", "Decrypting...", 200, 25) $dec = RSA_Decrypt($enc, "C:\\peethebee.privkey") SplashOff() MsgBox(0, "Decrypted", $dec) the archive with everything in it : http://www.autoit.de/peethebee/RSA-PlugIn_0.5.zip thanks again
  4. basically it encrypts well but whenever I try to decrypt this happens : third party seems good, do you recommand any of them ?
  5. Hi, thanks for the answers I found this udf here : '?do=embed' frameborder='0' data-embedContent>> and i've red the source code of _Crypt_EncryptFile so I think I can create it but the udf itself isn't working when I try to decrypt so I'm pretty sad since I don't feel like I can code the whole rsa algorithm with big int I'm a bit blocked T_T the inputbox idea is good but sometimes I need to encrypt without user prompt the password so :/
  6. Hi, on my current project I wish to encrypt some files, right now I used _Crypt_EncryptFile but the problem is that it only take one key and it can pretty much be found out easily. So I'd like to know if you know any function to do this : crypt file with the public key that everyone got so it can be crypted and stored inside the program without any fear but to decrypt the file you need a private key which isn't in the same as the public of course I don't know if I have explained me correctly but basically I am looking for a function to encrypt files with one password and decrypt them with a different one
×
×
  • Create New...