uuencode/base64 generator source code (in CPP and in Perl)

Algorithm to transfer input data to uuencode or base64 formats. It is realized in C++ and in Perl. It's used during few years in e-mail sending system

Version:

1.0

Price:

$12 (USD)

Platform:

MS DOS

uuencode/base64 generator source code (in CPP and in Perl) Download

Description of uuencode/base64 generator source code (in CPP and in Perl):

This code translate input file to uuencode or base64 formats( and works fine and fast ).Examples:./coder coder.cpp uuencode filename.cpp./coder coder.cpp base64 filename.cpp- second file name (filename.cpp) used only for uuencode generation ( for output in header like this is begin 644 coder.cpp )Use this command (under unix) to compile coder.cpp program:cc -o coder coder.cpp( or compile coder.cpp under Windows using Visual C++ or Borland C++ or any other compilers )Information:This algorithm developed for sending e-mails system, for attachmentfiles (and tested during two years of real work - no bugs were detected).There is a copy of this algorithm in Perl, but it is too slow, so I used call to ./coder [params]program that created using C++ language.Alexander Larkin.software@keromail.com*****P.S. There is enc.pl program that is the same algorithm, but in Perl.Parameters for enc.pl program is params of function thatyou may see on first line of enc.pl program.*****P.S.Output (result of this program) is something like this:begin 644 coder.cppM(VEN8VQU9&4@(G-T9&EO+F@B"B-I;F-L=61E(")S=')I;F<N:"(-"@T*1DE,M12`J<W1R96%M/3`[#0H-"FEN;&EN92!I;G0@=')A;G-L871E7V-H87(H:6YT...M#0H)?0T*("!P<FEN=&8H(F!<F5N9%QN7&XB*3L-"GT-"@T*9F-L;W-E*'-T;<F5A;2D[#0H)#0IR971U<FX@,#L-"GT-"@T*`endor (for base64):I2luY2x1ZGUgInN0ZGlvLmgiCiNpbmNsdWRlICJzdHJpbmcuaCINCg0KRklMRSAqc3RyZWFtPTA7DQoNCmlubGluZSBpbnQgdHJhbnNsYXRlX2NoYXIoaW50IGVuY3R5cGUsdW5zaWduZWQgY2hhciAm...DQoJfQ0KICBwcmludGYoImBcbmVuZFxuXG4iKTsNCn0NCg0KZmNsb3NlKHN0cmVhbSk7DQoJDQpyZXR1cm4gMDsNCn0NCg0K*****Here an example of how to send e-mail using result of this algorithm:From: Peter
To: Larkin Alexander Date: Tue, 17 Dec 2002 00:42:46 +0300 (MSK)Content-Type: text/plain; charset="koi8-r"Content-Transfer-Encoding: 8bitSubject: There is a file in attachment. Hello.How are you?See file.begin 644 net_ware6_promo.zipM4$L#!!0````(`#)FD"W#,O/4V2````N`@`3````;F5T7W=A<F4V7W!R;VUO...MYGS!_6+F?;J_`_Q#U!+`0(4`!0````(`#)FD"W#,O/4V2````N`@`3````M````````(`"V@0````!N971?=V%R939?<')O;6N9&]C4$L%!@`````!``$`*00````HP`````````endorDate: Tue, 10 Jul 2001 13:14:02 +0400 (MSD)To: aw@codis.ruFrom: Peter
Mime-Version: 1.0Content-Type: multipart/mixed; boundary="----=_NextPart_000_0035_01BFDAD2.1CFA5B60"X-Priority: 3X-MSMail-Priority: NormalSubject: Promotion bulletin 09.07.01This is a multi-part message in MIME format.------=_NextPart_000_0035_01BFDAD2.1CFA5B60Content-Type: text/plain; charset="koi8-r"Content-Transfer-Encoding: 8bit Hello.How are you?See file.------=_NextPart_000_0035_01BFDAD2.1CFA5B60Content-Type: application/x-zip-compressed; name="promo_8m.zip"Content-Transfer-Encoding: base64Content-Disposition: attachment; filename="promo_8m.zip"UEsDBBQAAAAIAFRt6SrsP+OgD6kAAABOBgAMAAAAcHJvbW9fOG0ueGxz7J0HXBTX9+jvwipYwYYVGEARFNi+LCrSsQEiRbC7wFKU5lLEysbeY080xsTENKOxRVJVNJYYjcYUxRiVdI0YMUZjbPvuPffO...G1BLAQIUABQAAAAIAFRt6SrsP+OgD6kAAABOBgAMAAAAAAAAAAAAIAC2gQAAAABwcm9tb184bS54bHNQSwUGAAAAAAEAAQA6AAAAOakAAAAACg==------=_NextPart_000_0035_01BFDAD2.1CFA5B60--



uuencode/base64 generator source code (in CPP and in Perl) Related Software:


Current Category Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20