Use this tag for questions about challenge-response authentication. Do NOT use it because the question is related to some programming challenge.
Questions tagged [challenge-response]
106 questions
2
votes
1 answer
ASP Core 2.0 JwtBearerAuthentication not working
I am trying to use JwtBearerAuthentication in Asp core 2.0 and I've encountered two main issues.
The Configure method of startup is like this:
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
if…

ConductedClever
- 4,175
- 2
- 35
- 69
2
votes
32 answers
Is my code solution for Binary Gap is correct or not? What should I improved in that?
A binary gap within a positive integer N is any maximal sequence of consecutive zeros that is surrounded by ones at both ends in the binary representation of N.
For example, number 9 has binary representation 1001 and contains a binary gap of length…

Vimal Panchal
- 301
- 1
- 5
- 15
2
votes
1 answer
How to verify ECC Signature from wolfSSL with OpenSSL
I am new to Elliptic Curve Cryptography, openSSL and wolfSSL. My context is that I generate KeyPair from command line with openssl and import the private key to my code. Then I use wolfSSL to generate signature and output it.
I save the output in…

Mayank Vijh
- 21
- 5
2
votes
1 answer
How to implement conditional AutomaticChallenge in ASP.NET Core?
How do I redirect requests coming to some path (web site) to login page but respond with unauthorized to requests coming to another path (API paths)?
As I understand AutomaticChallenge changes this behavior for all the web app. But how to make it…

Andrii
- 1,081
- 1
- 11
- 24
2
votes
0 answers
NotAuthorizedException what i get in object Challenge
As in title, what I get in Object Challenge which I get from javax.ws.rs.NotAuthorizedException
and how i can take realm, host and type of authorization from it?
Object challenge = notAuthorizedException.GetChallenges()[0];

Tomasz Kryński
- 513
- 4
- 23
2
votes
0 answers
Android 4.1.2 connection.getResponseCode() returns IOException wrongly
I'm using Volley in my app to make HTTP calls to my rest server.
When a user is not authenticated (no SESSION ID cookie) the server returns a 401.
But with Android 4.1.2 (with Android higher that 4.2.2 I don't have this problem) the calls fails with…

Johny19
- 5,364
- 14
- 61
- 99
2
votes
2 answers
Biggest sum from array without adding 2 consecutive value
I'm working on a challenge from codefights.com.
Given an array of integer (possibly negative) I need to return the biggest sum I can achieve without adding two consecutive integer (I can't change the order of the array).
Not easy to explain so…

Spare
- 82
- 8
2
votes
0 answers
Trouble porting a piece of code to C++ (CHAP)
I have the following, seemingly simple, piece of PHP code which is part of a CHAP implementation that I need to incorporate into a C++ project:
$response = md5("\0" . hash('sha256', $password) . pack('H32', $challenge);
This is what I have so…

user10504
- 94
- 6
2
votes
3 answers
AJAX/PHP challenge-response login
I've started working on a new web project and this time I thought I would put some more thought into how I handle user authentication (previously only working with MD5 hashed passwords). I feel like I've searched all the corners of the web for an…

user1571510
- 113
- 2
- 8
2
votes
10 answers
Security, cryptography: Stupid Challenge - Response protocol?
Ok guys just a small game:
I have some specifications for a project. At some point they ask for the following to encrypt a password over the net, saying that it is a challenge response protocol:
CLIENT ----------------------------- SERVER
(1)ask…

Pablo Herrero
- 1,724
- 5
- 18
- 23
1
vote
4 answers
jCryption + CRAM are a good alternative to SSL?
I would like to know if jCryption + Challenge Response Authentication Mechanism are a good alternative to SSL.
I know that SSL is very much better, but I'm making a project where the owner don't want to buy a SSL certificate and, I would like to…

Cristiano Santos
- 2,157
- 2
- 35
- 53
1
vote
3 answers
Customer List Challenge (TestDome)
I'm trying to solve this challenge from TestDome and i need some help. I dont really understand how i must toggle the email and how to append the item to DOM...
!!Please without Vanilla JS only!!
Implement the showCustomers function so that it…

munteanu dan
- 33
- 6
1
vote
2 answers
PYTHON - "Love for Mathematics"
I just finished a challenge on Dcoder ("Love for Mathematics") using Python. I failed two test-cases, but got one right. I used somewhat of a lower level of Python for the same as I haven't explored more yet, so I'm sorry if it looks a bit too…

rev0
- 35
- 4
1
vote
0 answers
How to authenticate user in keycloak using challenge response system while using its admin api
i m using keycloak 8.0 and i m looking to authenticate user by calling it admin api. Below is the curl command .
curl -X POST \
http://localhost:8180/auth/realms/quickstart-serv-springboot/protocol/openid-connect/token \
-H 'Cache-Control:…

Cshah
- 5,612
- 10
- 33
- 37
1
vote
1 answer
How to make Javascript redirect based on HTTP hostname header onload?
I am very new to Javascript. I master HTML and CSS. I am planning to make a bot detector for my website. Normal bot will not render javascript. So I want to make a Javascript based challenge website. If the user is a legitimate user, it will be…

Bryan
- 13
- 1
- 3