protect crypt_msg_to_matrice