About two minutes if thumbing around the official documentation for Ruby’s standard library, I quickly realised it would be faster to Google how to use the module for MD5/SHA* stuff than read the official stuff:
def encrypt_password
# This is just a place holder implementation for now
require ‘digest’
self.password = Digest::SHA512.hexdigest(password)
end