This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const CryptoJS = require("CryptoJS"); | |
const _timestamp = new Date().toISOString(); | |
const _sessionToken = "YOUR_SESSION_TOKEN_HERE"; | |
const _secretKey = "YOUR_SECRET_KEY_HERE"; | |
const _valToHash = _sessionToken + ":" + _timestamp; | |
const _hash = CryptoJS.HmacSHA256(_valToHash, _secretKey).toString(CryptoJS.enc.Base64); | |
const _authToken = CryptoJS.enc.Base64.stringify(CryptoJS.enc.Utf8.parse(_sessionToken + ":" + _hash)); | |
return "SIF_HMACSHA256 " + _authToken; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Taken from the original thread: https://github.com/jitsi/lib-jitsi-meet/issues/1082#issuecomment-616948457 | |
###Fresh install of jitsu meet with JWT token authentication on Ubuntu Bionic Beaver 18.04 | |
#add dns for meet.mydomain.com to point to public ip for vm | |
# Open ports on network security group | |
# 80/tcp | |
# 443/tcp | |
# 4443/tcp | |
# 10000/udp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <string> | |
#include <int> | |
#include <iostream> | |
int play() { | |
std::vector<std::string> players = { "Name1", "Name2", "Name3", "Name4" }; | |
std::string up = "down"; | |
std::string down = "up"; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# you will need to pip install requests | |
import requests | |
import hmac | |
import hashlib | |
import datetime | |
import base64 | |
baseUrl = "https://api.slatebox.com" |
OlderNewer