Jump to content
Tuts 4 You

How secure is this encryption exactly?


Recommended Posts

I made a program called "cryptex". Although it has several limitations and severe drawbacks -

I think that the security is quite strong :P

here's how it works :

The file to be encrypted must be below 0FFFFFh bytes - or 1mb.

A keyfile is generated exactly 1mb of size.

the keyfile contains FFFFF random bytes.

When encrypting - the program loads byte 1 of keyfile and byte 1 of target and it xors.

then it moves on to 2 and to 3 ... to the end of the file.

Each source byte is xored with a totally different byte from the keyfile.

So exactly how secure is this?

Thanks :)

note : an early version is included


  • Like 1
Link to comment

I guess a spin off from that is a license for users machine by using something unique that is on there system to produce the array of byte for the key, this way the file will only decrypt on there licensed uses system...

Link to comment

It's fairly secure in a practical sense, but I wouldn't call it cryptographically secure. For it to be cryptographically secure, the random number generator you are using to generate the stream must also be secure. And designing a secure random number generator is hard, let alone implementing it.

Link to comment
  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...