this encryption scheme actually works as opposed to the last one which only worked until the app restarted.