Jump to content

Is .jar programs unsafe?

- - - - -

  • Please log in to reply
1 reply to this topic

#1
cypro

cypro

    Newbie

  • Members
  • Pip
  • 5 posts
Hello I am creating a program which encrypt files and is written in Java. The executable file is .jar and my question is: .jar files/programs can be hacked and the hacker take the algorithm of decryption? As i know .jar files is compressed classes.

#2
Sinipull

Sinipull

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 386 posts
Yes, every algorithm can be "hacked" if one obtains the files, containing it - even .exe files(Machine code can be read too!).

The only way to keep the algorithm public and safe, is by using passwords/keys. So your program will use the provided key to decrypt the message/file right. The right key contains the right "weights" for the algorithm, but the key cannot be included in the encrypted files, or the hacker can read it. Just like .rar and .zip passwords work.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users