Results 1 to 10 of 10

Thread: How to encrypt mohaa script ?

  1. #1
    Junior Member DraGoN's Avatar
    Join Date
    Mar 2020
    Location
    Cairo, Egypt
    Posts
    18

    Default How to encrypt mohaa script ?

    Hello guys i want to know how to encrypt mohaa scripts.

  2. #2

    Default

    Quote Originally Posted by DraGoN View Post
    Hello guys i want to know how to encrypt mohaa scripts.
    What would be the advantage of this?

  3. #3
    Junior Member DraGoN's Avatar
    Join Date
    Mar 2020
    Location
    Cairo, Egypt
    Posts
    18

    Default

    i want to encrypt my servers scripts not advantage

  4. #4

    Default

    Well the why matters because, no you can't execute an encrypted file.

    If you simply want to store/share the file as encrypted that's understandable however you would need to decrypt the file in order to have it run. (This would be akin to putting it in a zip file with a password, and sharing the zip and password)

  5. #5
    Developer RyBack's Avatar
    Join Date
    Apr 2014
    Location
    In Front of the screen
    Posts
    1,603

    Default

    Why do you need to encrypt them?

  6. #6

    Default

    No need to ask for why, it's a waste of time for him, could be something like sharing the pak file containing scripts with others, and don't want to get his scripts stolen. Not caring about why he wants to do this, it doesn't matter.

    An alternative to encryption would be obfuscation, but at this time there is no tool that let you obfuscate mohaa script files like javascript.

  7. #7

    Default

    I hope such thing will never be added to RB/NF/OMOH
    That could lead to security issues, like people adding "backdoors" to his mods

  8. #8
    Administrator James's Avatar
    Join Date
    May 2010
    Location
    on the intraweb
    Posts
    3,180

    Default

    Right, I think there is always a pro's and con's list to them.
    If you're interested in securing it, just keep it private. And if you do share it with a limited amount of people, make sure you trust them. Anyway people here are right on. MOH doesn't have anything built to support a feature like this. If you encrypt files, then they would also have to be decrypted in runtime otherwise the game won't be able to read them. It would def require recoding server and possible the client binaries.

  9. #9
    Junior Member DraGoN's Avatar
    Join Date
    Mar 2020
    Location
    Cairo, Egypt
    Posts
    18

    Default

    Thx for ur reply bro

  10. #10
    Developer RyBack's Avatar
    Join Date
    Apr 2014
    Location
    In Front of the screen
    Posts
    1,603

    Default

    DraGoN, if you don't trust someone with your mods, don't give it to them, also, don't let them have access to the server(obviously)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •