PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → Send signed and encrypted emails with Windev
Send signed and encrypted emails with Windev
Iniciado por vmanu80, 15,nov. 2016 14:37 - 2 respuestas
Miembro registrado
6 mensajes
Publicado el 15,noviembre 2016 - 14:37
Good afternoon,

I need to create with Windev signed and encrypted emails according to Swiss Customs Technical specifications (sorry for the German text but is not available in other languages):

Envelope MIME-Attribute:
MIME-Version: 1.0
Content-Type: multipart/signed; protocol= "application/pkcs7-signature"; micalg=sha1
Attachment MIME-Attribute (Zollanmeldung, Rückmeldung):
• Content-Type: application/octet-stream
• Content-Transfer-Encoding: base64
Attachment MIME-Attribute (Signatur):
• Content-Type: application/pkcs7-signature; Name= "smime.p7s"
• Content-Transfer-Encoding: base64
• Content-Disposition: attachment; filename="smime.p7s“
Jede signierte Meldung muss das Zertifikat des Absenders enthalten (multipart/signed und application/pkcs-signature MIME-Format).
Envelope MIME-Attribute eingehender und ausgehender Mails:
• MIME-Version: 1.0
• Content-Type: application/pkcs7-mime; smime-type=enveloped-data; name="smime.p7m"
• Content-Transfer-Encoding: base64
• Content-Disposition: attachment; filename="smime.p7m"
• Content-Transfer-Encoding: base64
Beim Schicken der Antwort benutzt e-dec die folgenden Einstellungen:
• RSA
• 3DES mit Schlüsselstärke 192b
• CBC/PKCS5Padding MIME-Part Attribute der e-dec Antworten:
• Jeder Nachrichtenteil der MIME Message hat als Content-Transfer-Encoding „base64“ (analog zu NCTS).

Is possible with Windev?
Where I can find an example?

Thanks in advance
Best Regards
Manuela Vergerio
Publicado el 15,noviembre 2016 - 16:13
Hi Manuela,

it should be possible. I just read the technical/structure information
(not the german description), and it seems that your email contains text
encrypted then eocded in base64, and signature files (p7s and p7m) as
attached files.
So the main question is what type of encryption is used, and is this
type directly supported by the crypte or the cryptstandard functions. If
the annwser is yes, then you have all the basic building blocks.

If not, you'll need an external tool for the encryption, so in that case
it would be easier to use directly an external tool for encryption+email
formatting/sending

BEst regards

--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

Ready for you: WXShowroom.com, WXReplication (open source) and now WXEDM
(open source)

More information on http://www.fabriceharari.com


Le 11/15/2016 à 8:37 AM, vmanu80 a écrit :
Good afternoon,

I need to create with Windev signed and encrypted emails according to
Swiss Customs Technical specifications (sorry for the German text but is
not available in other languages):

Envelope MIME-Attribute:
MIME-Version: 1.0 Content-Type: multipart/signed; protocol=
"application/pkcs7-signature"; micalg=sha1
Attachment MIME-Attribute (Zollanmeldung, Rückmeldung): • Content-Type:
application/octet-stream • Content-Transfer-Encoding: base64
Attachment MIME-Attribute (Signatur): • Content-Type:
application/pkcs7-signature; Name= "smime.p7s" •
Content-Transfer-Encoding: base64 • Content-Disposition: attachment;
filename="smime.p7s“ Jede signierte Meldung muss das Zertifikat des
Absenders enthalten (multipart/signed und application/pkcs-signature
MIME-Format).
Envelope MIME-Attribute eingehender und ausgehender Mails: •
MIME-Version: 1.0 • Content-Type: application/pkcs7-mime;
smime-type=enveloped-data; name="smime.p7m"
• Content-Transfer-Encoding: base64 • Content-Disposition: attachment;
filename="smime.p7m"
• Content-Transfer-Encoding: base64
Beim Schicken der Antwort benutzt e-dec die folgenden Einstellungen: •
RSA • 3DES mit Schlüsselstärke 192b • CBC/PKCS5Padding MIME-Part
Attribute der e-dec Antworten: • Jeder Nachrichtenteil der MIME Message
hat als Content-Transfer-Encoding „base64“ (analog zu NCTS).

Is possible with Windev?
Where I can find an example?

Thanks in advance
Best Regards
Manuela Vergerio
Miembro registrado
102 mensajes
Publicado el 22,noviembre 2016 - 15:21
Manuela,

have a look at http://www.chilkatsoft.com/

This is a set of tools for email and for encryption as well. It can be used with WinDev with ActiveX.

HTH
Sebastian

--
http://arnoldconsult.de
WinDev 21 with Oracle, WinDevMobile Android Apps and Motorola Windows CE Mobile Barcode Scanners, Python 3 with Oracle and MySQL