Isn't derivedKey already in base64 here?