LoginLogin

Encryptor/Decryptor

Root / Submissions / [.]

12Me21Created:
Download:4R34P3ED
Version:Size:
The code:
INPUT F$,K$RANDOMIZE 0,LEN(K$)F$="TXT:"+F$T$=LOAD(F$,0)FOR I=0TO-1+LEN(T$)E=ASC(T$[I])XOR ASC(K$[RND(LEN(K$))])IF E-13THEN T$[I]=CHR$(E)ENDIF:NEXT:SAVE F$+".",T$'12Me21
(I'll upload it later) It uses XOR encryption, but instead of using each character of the key sequentially, it randomizes them, using the length of the password as a seed.

Instructions:

Put the program inside the project folder, then run it. INPUT the file name, password It will save the program as NAME$+"." To decrypt, do the same thing.

lets hope they dont' change the rnd function anytime soon, or else the returned seed could be different next update

Replying to:incvoid
lets hope they dont' change the rnd function anytime soon, or else the returned seed could be different next update
I doubt that will happen.

I think the loop should begin FOR I=0TO, and I think the guard on the IF should be E=13.

Replying to:SquareFingers
I think the loop should begin FOR I=0TO, and I think the guard on the IF should be E=13.
Oh, yeah I made a typo in the FOR statement. (fixed) The IF statement checks if E is NOT 13, IF E!=13 THEN (encrypt character) But to save space, I changed it to E-13, which equals 0 only if E is 13, and uses 1 less character.

Replying to:incvoid
lets hope they dont' change the rnd function anytime soon, or else the returned seed could be different next update
The RND function is a constant?

Replying to:incvoid
lets hope they dont' change the rnd function anytime soon, or else the returned seed could be different next update
No: but with a fixed seed, it is repeatable.

The downloadable project folder has a secret...

So, does this let us put copy written material onto the server as long as it's encrypted?

Replying to:Guzzler
So, does this let us put copy written material onto the server as long as it's encrypted?
I guess so... but that wasn't the original intent. I made this to keep secret programs hidden from other people,.

Replying to:Guzzler
So, does this let us put copy written material onto the server as long as it's encrypted?
Okay. I might be using this for some practical applications...

how do i encrypt a grp file

Replying to:12Me21
The downloadable project folder has a secret...
What is it?

fix this I can’t make my game with copyrighted material without this

Replying to:IAmRalsei
fix this I can’t make my game with copyrighted material without this
How the heck are you even still here

Replying to:IAmRalsei
fix this I can’t make my game with copyrighted material without this
What do you mean

How can I make this into a function?