Encrypt sample