encript and decript a msg with a secret