A cryptex is initially a cylindrical puzzle-box invented by Dan Brown for his novel The Da Vinci Code as a portable lockbox for secret messages.