Ive been tryin' to encrypt my save files, but i keep getting lost with myself. I was wondering if anyone has some good tips, or even a converter (Arthrogram?) set up already.
I quickly made one - it's an easy symmetric-key algorithm which encrypts/decrypts a string.
It's nothing fancy but most people will prefer to try to break your map instead of this encryption.
What it's basically doing is taking every character of a string and changing it with a different one.
The system only accepts a-z, A-Z and 0-9. If you want any other characters you have to add them to the ClearString and ScrambledString variables. The position of them doesn't matter as long as they're not at the same positions.
adding a checksum could help quite a bit for security.
edit: lmao. I was just going to refer you to RunLingRun before I noticed you were its author. I'm kinda curious about what you did with your character substitution cause I spent a night figuring out how to buff my chars :)
It basically allows you to add checksums and a password encryption to any string, store it in a bank (you got to do that yourself), retrieve it some other time and decrypt it. Voila.
What it's basically doing is taking every character of a string and changing it with a different one. The system only accepts a-z, A-Z and 0-9.
I don't think this kind of encryption would be worth the effort of implementing it. Takes a few seconds to break something like that unless you scamble the bank afterwards, and even then it's still pretty simple.
If you're wanting to encrypt numeric values, the easiest way to encrypt is to add a number then multiply by another number.
Say I wanted to encrypt "86". Add 18 and multiply by 359. To decrypt it, do the reverse. It's still easy to break but requires little to no effort to implement and will deter cursory attempts to break your bank. If you're wanting to encrypt alphanumeric codes then it'd be better to just convert the letters into 2 digit numbers and repeating the above step.
This is very, very basic encryption. You can find guides by searching with Google that will explain better than anyone on this forum can, most likely.
@Eiviyn: Go
"Takes a few seconds to break something like that. "
it takes more then a few seconds ... it takes few seconds when you DONT use it ... in most cases ppl will give up when they see a Ciphertext (http://en.wikipedia.org/wiki/Ciphertext).. but you are right! its not safe at all :) .. but there is nothing "realy" safe
Yes, polyalphabetic substitution. Vigenère cipher to be exact.
At least that's what Starcode is using. I don't know about my little testmap from ages ago.
It's near impossible to brute force, If you choose a good key word.
Implementing better algorithms are of not much use as long as map scripts themselves can be read.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Ive been tryin' to encrypt my save files, but i keep getting lost with myself. I was wondering if anyone has some good tips, or even a converter (Arthrogram?) set up already.
@Alec0124: Go
You mean an algorithm?
I quickly made one - it's an easy symmetric-key algorithm which encrypts/decrypts a string. It's nothing fancy but most people will prefer to try to break your map instead of this encryption.
What it's basically doing is taking every character of a string and changing it with a different one. The system only accepts a-z, A-Z and 0-9. If you want any other characters you have to add them to the ClearString and ScrambledString variables. The position of them doesn't matter as long as they're not at the same positions.
does this stil work?
adding a checksum could help quite a bit for security.
edit: lmao. I was just going to refer you to RunLingRun before I noticed you were its author. I'm kinda curious about what you did with your character substitution cause I spent a night figuring out how to buff my chars :)
@Gaurus: Go
Yes, this is still working. HOWEVER.. I have written a library a while ago that does the same thing, just better :)
http://forums.sc2mapster.com/development/galaxy-scripting-and-trigger-lib/5091-library-starcode-v1-2/
It basically allows you to add checksums and a password encryption to any string, store it in a bank (you got to do that yourself), retrieve it some other time and decrypt it. Voila.
@YiffMaster: Go
But if you want to hide your data too, then you just want to encrypt it. Else, here is a library for generating hash codes.
http://www.sc2mapster.com/assets/md5-hash/
I don't think this kind of encryption would be worth the effort of implementing it. Takes a few seconds to break something like that unless you scamble the bank afterwards, and even then it's still pretty simple.
If you're wanting to encrypt numeric values, the easiest way to encrypt is to add a number then multiply by another number.
Say I wanted to encrypt "86". Add 18 and multiply by 359. To decrypt it, do the reverse. It's still easy to break but requires little to no effort to implement and will deter cursory attempts to break your bank. If you're wanting to encrypt alphanumeric codes then it'd be better to just convert the letters into 2 digit numbers and repeating the above step.
This is very, very basic encryption. You can find guides by searching with Google that will explain better than anyone on this forum can, most likely.
@s3rius: Go Nice work! is it a http://en.wikipedia.org/wiki/Substitution_cipher ?
@Eiviyn: Go "Takes a few seconds to break something like that. " it takes more then a few seconds ... it takes few seconds when you DONT use it ... in most cases ppl will give up when they see a Ciphertext (http://en.wikipedia.org/wiki/Ciphertext).. but you are right! its not safe at all :) .. but there is nothing "realy" safe
@magnificence7: Go for example you can even crack MD5 via Bruteforce(http://en.wikipedia.org/wiki/Brute_force_attack) ... but i think none will make this effort to cheat at a funmap :)
@CeMPUTER: Go
Yes, polyalphabetic substitution. Vigenère cipher to be exact.
At least that's what Starcode is using. I don't know about my little testmap from ages ago.
It's near impossible to brute force, If you choose a good key word.
Implementing better algorithms are of not much use as long as map scripts themselves can be read.