Added some more methods to allow for NSData-based encryption keys.