home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga MA Magazine 1998 #3
/
amigamamagazinepolishissue1998.iso
/
maksiu
/
utils
/
eaissue3b.lha
/
Source_Code
/
AK_Decrypter_1.AMOS
/
AK_Decrypter_1.amosSourceCode
Wrap
AMOS Source Code
|
1995-12-30
|
1KB
|
44 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.
'
' This is the program which will decrypt an existing crunched file
'
Do
F$=Fsel$("","","Select the SOURCE file","to Decrypt")
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>0 and P<9
If P=2 : CHAR=97 : Print "Changed Value" : End If
If P=5 : CHAR=98 : Print "Changed Value" : End If
If P=1 : CHAR=99 : Print "Changed Value" : End If
If P=4 : CHAR=100 : Print "Changed Value" : End If
If P=3 : CHAR=101 : Print "Changed Value" : End If
If P=8 : CHAR=102 : Print "Changed Value" : End If
If P=6 : CHAR=103 : Print "Changed Value" : End If
If P=7 : CHAR=104 : Print "Changed Value" : End If
Else
CHAR=P
End If
If P=252 : CHAR=10 : 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