[Module] qAES - Module (all OS)

Hier könnt Ihr gute, von Euch geschriebene Codes posten. Sie müssen auf jeden Fall funktionieren und sollten möglichst effizient, elegant und beispielhaft oder einfach nur cool sein.
Benutzeravatar
Thorsten1867
Beiträge: 1359
Registriert: 04.02.2005 15:40
Computerausstattung: [Windows 10 x64] [PB V5.7x]
Wohnort: Kaufbeuren
Kontaktdaten:

[Module] qAES - Module (all OS)

Beitrag von Thorsten1867 »

qAES - Module (PB 5.7x/ all OS / 64Bit)

Einfache, aber sichere Verschlüsselungen mit AES
  • Strings verschlüsseln und ggf. als Datei speichern
  • Dateien verschlüsseln
  • Dateien beim Hinzufügen in ein Archiv verschlüsseln & beim Entpacken entschlüsseln
  • Direktes Laden & Speichern von verschlüsselten XML, JSON und Images
  • Erzeugen sicherer Schlüssel um BruteForce-Attacken deutlich zu erschweren
[Security Level 1] (BasicCoders / Load & Save / Packer)
Normalsterbliche sollten nicht in der Lage sein an meine Daten zu kommen
(=> Key / Counter / Hash, ...)

[Security Level 2] (SmartFileCoder)
Ich bin ein bisschen paranoid, was meine Daten betrifft.
(=> mehrfach verschlüsselter Key / zusätzlicher Counter mögl. / Hash / 'FakeLength' / ..... )

Code: Alles auswählen

; qAES::CreateSecureKey()           - use secure keys to make brute force attacks more difficult
; qAES::SetAttribute()              - [#EnlargeBytes/#HashLength/#ProtectedMarker/#CryptMarker]
; qAES::SetSalt()                   - add your own salt
; qAES::GetErrorMessage()           - returns error message 
; qAES::SmartCoder()                - encrypt / decrypt ascii strings, unicode strings and binary data (#Binary/#Ascii/#Unicode)

; ----- #Enable_BasicCoders [Security Level 1] -----

; qAES::EncodeFile()                - encrypt file with SmartCoder()
; qAES::DecodeFile()                - decrypt file with SmartCoder()
; qAES::FileCoder()                 - encrypt & decrypt  with SmartCoder()
; qAES::String()                    - encrypt / decrypt string with SmartCoder()
; qAES::StringToFile()              - create an encrypted string file with SmartCoder()
; qAES::File2String()               - read an encrypted string file with SmartCoder()
; qAES::IsCryptFile()               - checks if the file is encrypted. with SmartCoder()

; ----- #Enable_LoadSaveCrypt [Security Level 1] -----

; qAES::LoadCryptImage()            - similar to LoadImage()
; qAES::SaveCryptImage()            - similar to SaveImage()
; qAES::LoadCryptJSON()             - similar to LoadJSON()
; qAES::SaveCryptJSON()             - similar to SaveJSON()
; qAES::LoadCryptXML()              - similar to LoadXML()
; qAES::SaveCryptXML()              - similar to SaveXML()

; ----- #Enable_CryptPacker [Security Level 1] -----

; qAES::AddCryptPackFile()          - similar to AddPackFile()
; qAES::UncompressCryptPackFile()   - similar to UncompressPackFile()
; qAES::AddCryptPackMemory()        - similar to AddPackMemory()
; qAES::UncompressCryptPackMemory() - similar to UncompressPackMemory()
; qAES::AddCryptPackXML()           - similar to SaveXML(), but for packer
; qAES::UncompressCryptPackXML()    - similar to LoadXML(), but for packer
; qAES::AddCryptPackJSON()          - similar to SaveJSON(), but for packer
; qAES::UncompressCryptPackJSON()   - similar to LoadJSON(), but for packer
; qAES::AddCryptPackImage()         - similar to SaveImage(), but for packer
; qAES::UncompressCryptPackImage()  - similar to LoadImage(), but for packer
; qAES::IsCryptPackFile()           - checks if the packed file is encrypted

; ----- #Enable_SmartFileCoder [Security Level 2] -----

; qAES::SmartFileCoder()            - encrypting or decrypting file
; qAES::CheckIntegrity()            - checks the integrity of a encrypted file
; qAES::IsEncrypted()               - checks if a file is already encrypted
; qAES::IsProtected()               - checks if a file is already protected
; qAES::GetFileSize()               - returns the real file size
; qAES::CreateStringFile()          - create an encrypted string file
; qAES::ReadStringFile()            - read an encrypted string file
; qAES::ReadProtectedFile()         - read protected file and write it to memory
; qAES::EncryptImage()              - encrypt an image
; qAES::DecryptImage()              - decrypt an image
; qAES::LoadEncryptedImage()        - load an encrypted image (returns image number)
Download: aAES_Module.pbi

Bild
Download: SmartCrypter.exe (+ SourceCode)
Zuletzt geändert von Thorsten1867 am 23.11.2019 14:33, insgesamt 5-mal geändert.
Download of PureBasic - Module
Download of PureBasic - Programmes

[Windows 11 x64] [PB V6]

Bild
Benutzeravatar
Thorsten1867
Beiträge: 1359
Registriert: 04.02.2005 15:40
Computerausstattung: [Windows 10 x64] [PB V5.7x]
Wohnort: Kaufbeuren
Kontaktdaten:

Re: [Module] qAES - Module (all OS)

Beitrag von Thorsten1867 »

Update:
  • Changed: Dateiformat (qAES-ID hinzugefügt)
  • Added: IsCryptFile() / IsCryptPackFile()
Download of PureBasic - Module
Download of PureBasic - Programmes

[Windows 11 x64] [PB V6]

Bild
Benutzeravatar
Thorsten1867
Beiträge: 1359
Registriert: 04.02.2005 15:40
Computerausstattung: [Windows 10 x64] [PB V5.7x]
Wohnort: Kaufbeuren
Kontaktdaten:

Re: [Module] qAES - Module (all OS)

Beitrag von Thorsten1867 »

Update:
  • Dateiformat geändert (verbesserte Sicherheit)
  • einige Optimierungen & Bugfixes
  • ProgressBar zu SmartFileCoder() hinzugefügt
  • EnableKeyStretching()
Download of PureBasic - Module
Download of PureBasic - Programmes

[Windows 11 x64] [PB V6]

Bild
Benutzeravatar
Thorsten1867
Beiträge: 1359
Registriert: 04.02.2005 15:40
Computerausstattung: [Windows 10 x64] [PB V5.7x]
Wohnort: Kaufbeuren
Kontaktdaten:

Re: [Module] qAES - Module (all OS)

Beitrag von Thorsten1867 »

Nach intensivem Austausch mit Walbus ein größeres Update.

[ Bitte Dateien unbedingt neu verschlüssel ]

Update:
  • Dateformat geändert. (BasicCoder: Hash hinzugefügt/ SmartFileCoder: FakeLength hinzugefügt)
  • Hashes um die Datei - Integrität zu überprüfen.
  • Flags #EnlargeSize & #RandomizeSize for SmartFileCoder() zur Randomisierung der Dateilänge mit Zufallsdaten.
  • Modes #Auto / #Encrypt / #Decrypt / #Protect / #Unprotect für SmartFileCoder().
  • Addons für SmartFileCoder():
    • CreateStringFile() & ReadStringFile()
    • EncryptImage() & DecryptImage()
    • LoadEncryptedImage()
    • ReadProtectedFile()
Zuletzt geändert von Thorsten1867 am 17.08.2019 10:28, insgesamt 1-mal geändert.
Download of PureBasic - Module
Download of PureBasic - Programmes

[Windows 11 x64] [PB V6]

Bild
Benutzeravatar
Thorsten1867
Beiträge: 1359
Registriert: 04.02.2005 15:40
Computerausstattung: [Windows 10 x64] [PB V5.7x]
Wohnort: Kaufbeuren
Kontaktdaten:

Re: [Module] qAES - Module (all OS)

Beitrag von Thorsten1867 »

Hier noch ein kleines Anwendungsbeispiel:

Bild

Download: SmartCrypter.exe (+ SourceCode)
Download of PureBasic - Module
Download of PureBasic - Programmes

[Windows 11 x64] [PB V6]

Bild
Benutzeravatar
Thorsten1867
Beiträge: 1359
Registriert: 04.02.2005 15:40
Computerausstattung: [Windows 10 x64] [PB V5.7x]
Wohnort: Kaufbeuren
Kontaktdaten:

Re: [Module] qAES - Module (all OS)

Beitrag von Thorsten1867 »

Update: SmartCrypter.exe
  • Bugfixes: Remove File(s)
  • Added: Popupmenu (e.g. Copy Hash)
  • Added: Check the integrity of the file
  • Added: Check if files were encrypted
  • Added: Multilingual support
[17.08.2019] Bugfix Resize
Download of PureBasic - Module
Download of PureBasic - Programmes

[Windows 11 x64] [PB V6]

Bild
Antworten