Category : authentication

I have this problem, when I run the following code in .net 3.0, in debbuging mode VisualStudio 2019, on Windows 10 S.O. var iat = Math.Round((DateTime.UtcNow.AddMinutes(-1) – new DateTime(1970, 1, 1, 0, 0, 0)).TotalSeconds, 0); var exp = Math.Round((DateTime.UtcNow.AddMinutes(60) – new DateTime(1970, 1, 1, 0, 0, 0)).TotalSeconds, 0); var payload = new Dictionary<string, object>() { ..

Read more

I try connect to coinbase, but i have failed: This is three functions, wich I use for auth ///////////////////////////////////////////// void toAdmin(FIX::Message& msg, const FIX::SessionID& session) { std::string sendingTime = msg.getHeader().getField(52); std::string msgType = msg.getHeader().getField(35); std::string msgSeqNum = msg.getHeader().getField(34); std::string senderCompId = msg.getHeader().getField(49); std::string targetCompId = msg.getHeader().getField(56); std::string password = "myPassword"; std::string rawDara = sendingTime + ..

Read more

#include<iomanip> #include<iostream> #include<fstream> #include <windows.h> using namespace std; int main(){ int i,x=0,y=5000; string password,username,type,p,tryi,s,passwordtry; start://if error it comes back!!! cout<<"Sign: ";//start of input type cin>>type; if(type=="up"){//start of sign up input and saving user data system("COLOR 07"); notconfirmed: cout<<setw(65); cout<<"Set username:"; cin>>username; cout<<setw(65); cout<<"Set password:"; cin>>password; cout<<setw(69); cout<<"Confirm password:"; cin>>passwordtry; if(password == passwordtry){ ofstream file_; file_.open(username ..

Read more

Im trying to build a server application thats stores keys on request using the CrowCpp lib. This is pretty much the general idea: CROW_ROUTE(app, "/getLock/<string>/<int>") ([&](std::string lockName, unsigned int id) { if (!this->getLock(lockName, id)) { return "false"; } else { return "true"; } app.port(portNum).multithreaded().run(); }); However, having an open base for keys, kind of brings ..

Read more