Home » Personal collection » Acorn tapes » Electron_User » Electron_User_tape25a_acorn_eu_1991_july.wav » DES
DES
This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.
Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.
Tape/disk: | Home » Personal collection » Acorn tapes » Electron_User » Electron_User_tape25a_acorn_eu_1991_july.wav |
Filename: | DES |
Read OK: | ✔ |
File size: | 04D4 bytes |
Load address: | FFFF1A00 |
Exec address: | FFFF8023 |
Duplicates
There are 3 duplicate copies of this file in the archive:
- AEW website » mu » mu_5_25_discs_Micro_User_09_05_D-MU09_05.ssd » DES
- AEW website » mu » mu_Micro_User_09_05_MU9-5_B.uef » DES
- Personal collection » Acorn tapes » Electron_User » Electron_User_tape25a_acorn_eu_1991_july.wav » DES
- Personal collection » Acorn tapes » Electron_User » Electron_User_tape25b_acorn_eu_1991_july.wav » DES
File contents
10REM Data Encryption Standard 20REM FILE ENCRYPTION 30REM By C.Dunkley 1990/91 40MODE7 50*KEY0 PAGE=&2300|M*LOAD DES_MC|MCH."DES"|M 60IFPAGE=&2300 THEN100 70*FX138 0 128 80STOP 90: 100des%=&20E2:key%=&20C9:text%=&20D2:ddes%=&20DB 110*FX200 1 120: 130REPEAT 140CLS 150PRINTSPC(8);"DATA ENCRYPTION STANDARD" 160PRINT'SPC(8);"By C.Dunkley (Dec 1990)" 170PRINT'STRING$(40,"-"); 180PRINT 190key$="" 200FORN%=1TO8 210INPUT"File name : ",in$ 220INPUTTAB(0,7);"Key : ",key$ 230PRINTTAB(0,7);SPC(40); 240IFLENkey$>8 THEN220 250PRINTTAB(0,7);"Cipher or Decipher : "; 260REPEAT 270A$=CHR$(GET OR32) 280UNTILA$="c"ORA$="d" 290PRINT;A$; 300PRINT' 310IFLENkey$<8 FORloop%=LENkey$TO7:key$=key$+CHR$0:NEXT 320F%=OPENUP(in$) 330S%=EXT#(F%) 340N%=S%DIV8 350IFN%<>S%/8 THEN PROCmessage 360$key%=key$ 370O%=0 380PRINTTAB(0,12);"Iterations left : "; 390FORloop%=1 TO N% 400PTR#F%=O% 410text$="" 420FORloop1%=0TO7 430 text$=text$+CHR$(BGET#(F%)) 440NEXT 450$text%=text$ 460IFA$="c" CALLdes% ELSE CALLddes% 470PTR#F%=O% 480FORloop1%=0TO7 490 BPUT#F%,?(text%+loop1%) 500NEXT 510PRINTTAB(18,12);N%-loop%;" "; 520O%=O%+8 530NEXT 540CLOSE#F% 550PRINT''"Finished" 560PRINT'STRING$(40,"-") 570PRINT"Another file (Y/N)?"; 580REPEAT 590A$=CHR$(GET OR32) 600UNTILA$="y"ORA$="n" 610UNTILA$="n" 620CLS 630END 640REM ***************************************** 650: 660DEFPROCmessage 670PRINT"The file size is not divisable by 8," 680A%=S%-8*(S%DIV8) 690PRINT"the last ";A%;" byte(s) will not be altered." 700ENDPROC
� Data Encryption Standard � FILE ENCRYPTION � By C.Dunkley 1990/91 (�7 2.*KEY0 PAGE=&2300|M*LOAD DES_MC|MCH."DES"|M <�=&2300 ��Dd@ F*FX138 0 128 P� Z: d1des%=&20E2:key%=&20C9:text%=&20D2:ddes%=&20DB n*FX200 1 x: �� �� �$�(8);"DATA ENCRYPTION STANDARD" �%�'�(8);"By C.Dunkley (Dec 1990)" ��'�40,"-"); �� �key$="" ��N%=1�8 ��"File name : ",in$ ��0,7);"Key : ",key$ ��0,7);�(40); ��key$>8 ��d\@ �#�0,7);"Cipher or Decipher : "; � A$=�(� �32) �A$="c"�A$="d" " �;A$; ,�' 6*�key$<8 �loop%=�key$�7:key$=key$+�0:� @ F%=�(in$) J S%=�#(F%) TN%=S%�8 ^�N%<>S%/8 � �message h$key%=key$ rO%=0 |!�0,12);"Iterations left : "; ��loop%=1 � N% ��#F%=O% �text$="" ��loop1%=0�7 � text$=text$+�(�#(F%)) �� �$text%=text$ ��A$="c" �des% � �ddes% ��#F%=O% ��loop1%=0�7 � �#F%,?(text%+loop1%) �� ��18,12);N%-loop%;" "; O%=O%+8 � �#F% &�''"Finished" 0�'�40,"-") :�"Another file (Y/N)?"; D� NA$=�(� �32) X�A$="y"�A$="n" b�A$="n" l� v� �/� ***************************************** �: � ��message �+�"The file size is not divisable by 8," �A%=S%-8*(S%�8) �3�"the last ";A%;" byte(s) will not be altered." �� �
00000000 0d 00 0a 1e f4 20 44 61 74 61 20 45 6e 63 72 79 |..... Data Encry| 00000010 70 74 69 6f 6e 20 53 74 61 6e 64 61 72 64 0d 00 |ption Standard..| 00000020 14 15 f4 20 46 49 4c 45 20 45 4e 43 52 59 50 54 |... FILE ENCRYPT| 00000030 49 4f 4e 0d 00 1e 1a f4 20 42 79 20 43 2e 44 75 |ION..... By C.Du| 00000040 6e 6b 6c 65 79 20 31 39 39 30 2f 39 31 0d 00 28 |nkley 1990/91..(| 00000050 06 eb 37 0d 00 32 2e 2a 4b 45 59 30 20 50 41 47 |..7..2.*KEY0 PAG| 00000060 45 3d 26 32 33 30 30 7c 4d 2a 4c 4f 41 44 20 44 |E=&2300|M*LOAD D| 00000070 45 53 5f 4d 43 7c 4d 43 48 2e 22 44 45 53 22 7c |ES_MC|MCH."DES"|| 00000080 4d 0d 00 3c 12 e7 90 3d 26 32 33 30 30 20 8c 8d |M..<...=&2300 ..| 00000090 44 64 40 0d 00 46 10 2a 46 58 31 33 38 20 30 20 |Dd@..F.*FX138 0 | 000000a0 31 32 38 0d 00 50 05 fa 0d 00 5a 05 3a 0d 00 64 |128..P....Z.:..d| 000000b0 31 64 65 73 25 3d 26 32 30 45 32 3a 6b 65 79 25 |1des%=&20E2:key%| 000000c0 3d 26 32 30 43 39 3a 74 65 78 74 25 3d 26 32 30 |=&20C9:text%=&20| 000000d0 44 32 3a 64 64 65 73 25 3d 26 32 30 44 42 0d 00 |D2:ddes%=&20DB..| 000000e0 6e 0c 2a 46 58 32 30 30 20 31 0d 00 78 05 3a 0d |n.*FX200 1..x.:.| 000000f0 00 82 05 f5 0d 00 8c 05 db 0d 00 96 24 f1 89 28 |............$..(| 00000100 38 29 3b 22 44 41 54 41 20 45 4e 43 52 59 50 54 |8);"DATA ENCRYPT| 00000110 49 4f 4e 20 53 54 41 4e 44 41 52 44 22 0d 00 a0 |ION STANDARD"...| 00000120 25 f1 27 89 28 38 29 3b 22 42 79 20 43 2e 44 75 |%.'.(8);"By C.Du| 00000130 6e 6b 6c 65 79 20 20 28 44 65 63 20 31 39 39 30 |nkley (Dec 1990| 00000140 29 22 0d 00 aa 0f f1 27 c4 34 30 2c 22 2d 22 29 |)".....'.40,"-")| 00000150 3b 0d 00 b4 05 f1 0d 00 be 0b 6b 65 79 24 3d 22 |;.........key$="| 00000160 22 0d 00 c8 0b e3 4e 25 3d 31 b8 38 0d 00 d2 17 |".....N%=1.8....| 00000170 e8 22 46 69 6c 65 20 6e 61 6d 65 20 3a 20 22 2c |."File name : ",| 00000180 69 6e 24 0d 00 dc 1e e8 8a 30 2c 37 29 3b 22 4b |in$......0,7);"K| 00000190 65 79 20 20 20 20 20 20 20 3a 20 22 2c 6b 65 79 |ey : ",key| 000001a0 24 0d 00 e6 11 f1 8a 30 2c 37 29 3b 89 28 34 30 |$......0,7);.(40| 000001b0 29 3b 0d 00 f0 13 e7 a9 6b 65 79 24 3e 38 20 8c |);......key$>8 .| 000001c0 8d 64 5c 40 20 0d 00 fa 23 f1 8a 30 2c 37 29 3b |.d\@ ...#..0,7);| 000001d0 22 43 69 70 68 65 72 20 6f 72 20 44 65 63 69 70 |"Cipher or Decip| 000001e0 68 65 72 20 3a 20 22 3b 0d 01 04 05 f5 0d 01 0e |her : ";........| 000001f0 0f 41 24 3d bd 28 a5 20 84 33 32 29 0d 01 18 12 |.A$=.(. .32)....| 00000200 fd 41 24 3d 22 63 22 84 41 24 3d 22 64 22 0d 01 |.A$="c".A$="d"..| 00000210 22 09 f1 3b 41 24 3b 0d 01 2c 06 f1 27 0d 01 36 |"..;A$;..,..'..6| 00000220 2a e7 a9 6b 65 79 24 3c 38 20 e3 6c 6f 6f 70 25 |*..key$<8 .loop%| 00000230 3d a9 6b 65 79 24 b8 37 3a 6b 65 79 24 3d 6b 65 |=.key$.7:key$=ke| 00000240 79 24 2b bd 30 3a ed 0d 01 40 0d 46 25 3d ad 28 |y$+.0:...@.F%=.(| 00000250 69 6e 24 29 0d 01 4a 0d 53 25 3d a2 23 28 46 25 |in$)..J.S%=.#(F%| 00000260 29 0d 01 54 0b 4e 25 3d 53 25 81 38 0d 01 5e 18 |)..T.N%=S%.8..^.| 00000270 e7 4e 25 3c 3e 53 25 2f 38 20 8c 20 f2 6d 65 73 |.N%<>S%/8 . .mes| 00000280 73 61 67 65 0d 01 68 0e 24 6b 65 79 25 3d 6b 65 |sage..h.$key%=ke| 00000290 79 24 0d 01 72 08 4f 25 3d 30 0d 01 7c 21 f1 8a |y$..r.O%=0..|!..| 000002a0 30 2c 31 32 29 3b 22 49 74 65 72 61 74 69 6f 6e |0,12);"Iteration| 000002b0 73 20 6c 65 66 74 20 3a 20 22 3b 0d 01 86 11 e3 |s left : ";.....| 000002c0 6c 6f 6f 70 25 3d 31 20 b8 20 4e 25 0d 01 90 0b |loop%=1 . N%....| 000002d0 cf 23 46 25 3d 4f 25 0d 01 9a 0c 74 65 78 74 24 |.#F%=O%....text$| 000002e0 3d 22 22 0d 01 a4 0f e3 6c 6f 6f 70 31 25 3d 30 |="".....loop1%=0| 000002f0 b8 37 0d 01 ae 1b 20 20 74 65 78 74 24 3d 74 65 |.7.... text$=te| 00000300 78 74 24 2b bd 28 9a 23 28 46 25 29 29 0d 01 b8 |xt$+.(.#(F%))...| 00000310 05 ed 0d 01 c2 10 24 74 65 78 74 25 3d 74 65 78 |......$text%=tex| 00000320 74 24 0d 01 cc 1a e7 41 24 3d 22 63 22 20 d6 64 |t$.....A$="c" .d| 00000330 65 73 25 20 8b 20 d6 64 64 65 73 25 0d 01 d6 0b |es% . .ddes%....| 00000340 cf 23 46 25 3d 4f 25 0d 01 e0 0f e3 6c 6f 6f 70 |.#F%=O%.....loop| 00000350 31 25 3d 30 b8 37 0d 01 ea 1a 20 20 d5 23 46 25 |1%=0.7.... .#F%| 00000360 2c 3f 28 74 65 78 74 25 2b 6c 6f 6f 70 31 25 29 |,?(text%+loop1%)| 00000370 0d 01 f4 05 ed 0d 01 fe 1a f1 8a 31 38 2c 31 32 |...........18,12| 00000380 29 3b 4e 25 2d 6c 6f 6f 70 25 3b 22 20 22 3b 0d |);N%-loop%;" ";.| 00000390 02 08 0b 4f 25 3d 4f 25 2b 38 0d 02 12 05 ed 0d |...O%=O%+8......| 000003a0 02 1c 08 d9 23 46 25 0d 02 26 11 f1 27 27 22 46 |....#F%..&..''"F| 000003b0 69 6e 69 73 68 65 64 22 0d 02 30 0e f1 27 c4 34 |inished"..0..'.4| 000003c0 30 2c 22 2d 22 29 0d 02 3a 1b f1 22 41 6e 6f 74 |0,"-")..:.."Anot| 000003d0 68 65 72 20 66 69 6c 65 20 28 59 2f 4e 29 3f 22 |her file (Y/N)?"| 000003e0 3b 0d 02 44 05 f5 0d 02 4e 0f 41 24 3d bd 28 a5 |;..D....N.A$=.(.| 000003f0 20 84 33 32 29 0d 02 58 12 fd 41 24 3d 22 79 22 | .32)..X..A$="y"| 00000400 84 41 24 3d 22 6e 22 0d 02 62 0b fd 41 24 3d 22 |.A$="n"..b..A$="| 00000410 6e 22 0d 02 6c 05 db 0d 02 76 05 e0 0d 02 80 2f |n"..l....v...../| 00000420 f4 20 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a |. **************| 00000430 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a |****************| 00000440 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 0d 02 8a 05 3a |***********....:| 00000450 0d 02 94 0d dd f2 6d 65 73 73 61 67 65 0d 02 9e |......message...| 00000460 2b f1 22 54 68 65 20 66 69 6c 65 20 73 69 7a 65 |+."The file size| 00000470 20 69 73 20 6e 6f 74 20 64 69 76 69 73 61 62 6c | is not divisabl| 00000480 65 20 62 79 20 38 2c 22 0d 02 a8 12 41 25 3d 53 |e by 8,"....A%=S| 00000490 25 2d 38 2a 28 53 25 81 38 29 0d 02 b2 33 f1 22 |%-8*(S%.8)...3."| 000004a0 74 68 65 20 6c 61 73 74 20 22 3b 41 25 3b 22 20 |the last ";A%;" | 000004b0 62 79 74 65 28 73 29 20 77 69 6c 6c 20 6e 6f 74 |byte(s) will not| 000004c0 20 62 65 20 61 6c 74 65 72 65 64 2e 22 0d 02 bc | be altered."...| 000004d0 05 e1 0d ff |....| 000004d4