Questions tagged [challenge-response]

Use this tag for questions about challenge-response authentication. Do NOT use it because the question is related to some programming challenge.

106 questions
1
vote
1 answer

How to Go back from particular activity to Navigation Drawer activity

When i click my account in navigation drawer(HomePage.java) moving to account activity(account.java).when i tried to click go back in account(account.java ) my app stops.I tried a lot but nothing helped me.I'm new to Android. 11-10 00:03:56.739…
1
vote
0 answers

FIDO U2F Key: Sign authentication challenge in Chrome returns error code 4 (works in FF)

We are trying to add authentication via Yubico FIDO U2F Security Key to our admin website. This works in FireFox with the U2F add-on installed but signing a challenge (using javascript) to log in keeps returning {errorCode: 4}. Does anyone know…
Dean Voets
  • 21
  • 4
1
vote
1 answer

How to add a new column or table to sqlite database pre-populated in the assets and using SQLiteAssetHelper

How can I add a new column or new table to the database that pre-populated (in the assets) using SQLiteAssetHelper. I originally preload a simple table with 3 columns: id question answer Once installed the app, I need to add some columns that…
AndroPro
  • 15
  • 1
  • 7
1
vote
2 answers

Hackerrank String Function Calculation

I'm trying to solve the String Function Calculation problem from Hackerrank. In this problem, we're given a string as input and asked to print a number that represents the maximum of the following function, among all substrings of the input…
1
vote
1 answer

Solving a Programming Challenge: Apparatus, from Kattis

I am trying to solve apparatus problem described here. And I have a solution but it takes longer than 2 seconds which the time limit. I've tried to optimize my code for speed but can't get it with in the 2 second limit. import sys import math for…
1
vote
6 answers

The sum of all the multiples of 3 or 5 below N

I have to find the sum of all the multiples of 3 or 5 below N. example if we have to list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9,the sum of these multiples is 23. Now the only problem left is that I want…
Hadh
  • 317
  • 1
  • 7
  • 22
1
vote
0 answers

Can someone explain me Topcoder randomn pancake challenge's DP solution in SRM656

The challenge is as follows: http://community.topcoder.com/stat?c=problem_statement&pm=13747&rd=16416 Charlie has N pancakes. He wants to serve some of them for breakfast. We will number the pancakes 0 through N-1. For each i, pancake i has width…
Urvishsinh Mahida
  • 1,440
  • 16
  • 23
1
vote
0 answers

How to deal with anonymous login attempts when you allow both anonymous access and logged in users?

I have a framework that allows anonymous access as well as named user accounts. I'm exposing an OData resource on a certain URL. When configured as such, anonymous users can see parts of the resource and logged in users (through basic…
1
vote
1 answer

Consecutive Primes Challenge

I am working on Consecutive Primes Challenge @ codeeval.com and can't pass the automatic grader. I think i am getting correct results but possibly missing some edge cases. I tried recursion but couldn't get it to work and it was too slow. Figured…
Yan
  • 3,533
  • 4
  • 24
  • 45
1
vote
1 answer

Inescapable while loop in Simple Interest calculator

I was trying to solve the /r/DailyProgrammer challenge number 2, Easy https://www.reddit.com/r/dailyprogrammer/comments/pjbj8/easy_challenge_2/ I am trying to do this in python using a functions and a series of nested if-elif-else's here's my…
1
vote
0 answers

how to access digest authentication in java

always out print the same message.. what is my fault? result message [responseCode : 401, responseMessage : Unauthorized] //http request1 HttpURLConnection con = (HttpURLConnection) obj.openConnection(); con.connect(); //http response1 401…
1
vote
0 answers

Linux Pam authentication by answering to a challenge

I am trying to find a module that can help to ask a question to end an authentication. for example when I connect in ssh, the module ask me to resolve a equation or to answer to a question.
1
vote
2 answers

What are some efficient ways to generate challenge/response for a backdoor entry scheme?

We have a system that uses password authentication to access a database, the usernames and encrypted passwords are stored in the database. when a user forgets their password, (or the administrator leaves for greener pastures) we want to be able to…
Aran Mulholland
  • 23,555
  • 29
  • 141
  • 228
0
votes
1 answer

Java: Remove child object from menu tree

I have this UI object with below structure, i dont have control on how that list is populated, but i had to remove some child items meeting my condition, can anyone please suggest how i can do it (Language is Java) Class definition Class MenuItemObj…
vjkumar
  • 39
  • 5
0
votes
1 answer

find a,b from a given gcd and lcm

The problem was to find two numbers, and , such that their greatest common divisor and their least common multiple would add up to a given number, . Moreover, the difference between the two numbers should be as small as possible, and must be…