I am writing a Java application which can \"encrypt\" and consequently \"decrypt\" whatever binary file.
I am just a beginner in the \"cryptography\" area so I would
It would probably be easier not to check the password give by the user against a global password, rather ensure that only that one password (known by the user) decrypts the ciphertext into the correct plaintext, any other password would return gibberish. This is usually how cryptography works and means you don't have to store a centralised password anywhere.