Study of writing and deciphering codes