AES universal crypter - Very simple using

Share your advanced PureBasic knowledge/code with the community.
walbus
Addict
Addict
Posts: 929
Joined: Sat Mar 02, 2013 9:17 am

AES universal crypter - Very simple using

Post by walbus »

Last edited by walbus on Mon Oct 17, 2016 12:30 am, edited 5 times in total.
walbus
Addict
Addict
Posts: 929
Joined: Sat Mar 02, 2013 9:17 am

Re: Advanced AES universal crypter Module

Post by walbus »

Yep, now, how i can encrypt a file with this crypter ?

Looking, this is all you want to encrypt and decrypt any files with the QUICK-AES-256 smart crypter...

Only one line code for the crypter LOL... :shock:

This is sooo simple...

Code: Select all

UseModule QAES_smart_coder
 path$ = OpenFileRequester("Select a file too encrypting or decrypting !", "", "*.*", 0)
 file=OpenFile(#PB_Any, path$)
 If file
   *buffer=AllocateMemory(Lof(file))
   ReadData(file, *buffer, MemorySize(*buffer))
   QAES_smart_coder(*buffer, *buffer, MemorySize(*buffer), "Your key")
   FileSeek(file, 0) : WriteData(file, *buffer, MemorySize(*buffer)) : CloseFile(file)
 EndIf
User avatar
Keya
Addict
Addict
Posts: 1890
Joined: Thu Jun 04, 2015 7:10 am

Re: Advanced AES universal crypter Module

Post by Keya »

you made me read about OFB mode, some interesting qualities :)
https://en.wikipedia.org/wiki/Block_cip ... _.28OFB.29
Post Reply