implement encrypted password in the .json files and rewrite files with
encrypted password if its not encrypted.

Removed main from Encrypted class as it was just for testing.