Moved encrypt and decrypt methods onto `Key`