you could use WMI for both, or for example, this
get Physical HDD serial number without WMI[
^] for the disk, serial number is likely out there somewhere.
Similarly, encryption code is easy to find - if you look here on CP you'll find most of what you need including building keys, look for articles by Jeffrey Walton for-instance
We dont in general supply code to people - you have to do the research/grunt work yourself - once you have difficulties with a particular piece of code you can ask back here.
'g'