Purrfectly working write to file for encr/decr.