add functions to sign and verify strings using a key