Just write your diary entries on a file on your computer or on the internet. It may have more security than a physical diary if you have password protection.
There are many blogging sites you can use and set entries to private, or you can email yourself. It is safer if you want it secret from friends and family.