home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga MA Magazine 1998 #3
/
amigamamagazinepolishissue1998.iso
/
maksiu
/
utils
/
eaissue3b.lha
/
Source_Code
/
AK_Encrypter_1.AMOS
/
AK_Encrypter_1.amosSourceCode
Wrap
AMOS Source Code
|
1995-12-30
|
1KB
|
43 lines
' Quick Encryption program.
' This program will only encrypt 10 letters of any piece of text.
' These are A-I, and CHR$(10), a character string VITAL to the ASCII
' System. Characters are in lower case.
Do
F$=Fsel$("","","Select the SOURCE file","to Encrypt")
G$=Fsel$("","","Select DEST file")
Open In 1,F$ : Reserve As Data 10,Lof(1)
Reserve As Data 11,Lof(1)
Close : Bload F$,10 : Rem Load in all of source file
' Now for the Loop
LE=0
Repeat
P=Peek(Start(10)+LE)
If P>96 and P<105
If P=97 : CHAR=2 : Print "Changed Value" : End If
If P=98 : CHAR=5 : Print "Changed Value" : End If
If P=99 : CHAR=1 : Print "Changed Value" : End If
If P=100 : CHAR=4 : Print "Changed Value" : End If
If P=101 : CHAR=3 : Print "Changed Value" : End If
If P=102 : CHAR=8 : Print "Changed Value" : End If
If P=103 : CHAR=6 : Print "Changed Value" : End If
If P=104 : CHAR=7 : Print "Changed Value" : End If
Else
CHAR=P
End If
If P=10 : CHAR=252 : Print "Changed CHR$(10)" : End If
Poke Start(11)+LE,CHAR
Inc LE
Until LE>Length(10)
Bsave G$,Start(11) To Start(11)+Length(11)
Erase 10 : Erase 11 : Cls
Loop