« first day (1264 days earlier)      last day (2077 days later) » 

8:31 PM
How to implement this apex code in python:import hmac,hashlib
from base64 import b64encode, b64decode
res = hmac.new(input_key,message, digestmod=hashlib.sha256).hexdigest()
print(b64encode(res))
String key='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';

Blob privateKey = EncodingUtil.base64Decode(key);

String signature = System.encodingUtil.base64Encode(
Crypto.sign('RSA-SHA256', Blob.valueOf(jwtRequest), privateKey)).replace('+', '-').replace('/', '_');
 
 
1 hour later…
9:46 PM
1 message moved from Python
 
 
1 hour later…
11:00 PM
I don't think it would be appropriate to ask this question on SO, so I am trying my luck here instead.

Now, I created my own node app with frontend and backend. Would it be possible to host the client (the static files) on github and the server (backend files) on Heroku? And then somehow have my static github page make requests to my Heroku server side code.
 
11:18 PM
1 message moved from Python
 

« first day (1264 days earlier)      last day (2077 days later) »