Einzelnen Beitrag anzeigen

Benutzerbild von Ajintaro
Ajintaro

Registriert seit: 20. Okt 2004
Ort: Sankt Augustin
138 Beiträge
 
Delphi XE6 Starter
 
#1

JAVA Encryption in Delphi umsetzen

  Alt 20. Okt 2015, 10:09
Hallo,

ich habe eine JAVA-Verschlüsselungsroutine erhalten und möchte dies mit der Chillkat Komponente umsetzen.
Ich kann es leider nicht selbst umsetzen und wollte an dieser Stelle nach jemandem suchen, der es für mich umsetzen kann.

Was ich liefern kann:
  • Chillkat Komponente
  • Delphi Demo mit funktionierender AES Verschlüsselung
  • JAVA-Routine mit Quelltexterläuterungen

Was ich brauche:
  • Umsetzung der JAVA-Routine in Delphi (DEC oder Chillkat Library)

Method
AES/CBC/PKCS5Padding

Secret Key
128bits

Initialization Vector
  • requires to have 128bit (Same length as the blocks in AES)
  • IV used during encryption should be added in front of encrypted data
  • new IV should be generated for each encryption

Encrypted token format
The process to build the token from encrypted data is:
  1. Compute SHA1 of the 4 first bytes of the encryption key
  2. create the part to be signed by concatenating:
    • 0x00
    • 4 first bytes of SHA1 computed in Step 1
    • Encrypted data
  3. Using HmacSHA1 of the encryption key, sign the block of data generated in Step 2
  4. Concatenate block of data from step 2 with the one from step 3
  5. Encode using base 64 the block generated in previous step

Falls jemand Zeit und Lust hat, schreibt mich bitte per PN oder Email (the_summoner@hotmail.com) an und wir besprechen dann die Details.
Jaimy
DAoC 2.0 -> Camelot Unchained !

Geändert von Ajintaro (20. Okt 2015 um 13:25 Uhr) Grund: Text angepasst
  Mit Zitat antworten Zitat