Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- std::string encode_key(std::string key) {
- key += WSGUID;
- char hash[20] = {0};
- char base64[128] = {0};
- sha1_hash(hash, key.c_str(), key.size());
- base64_encode(base64, hash, 20);
- return base64;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement