Questions tagged [verify]
676 questions
4
votes
1 answer
How to sign a file with a specific public key and check what key was used for signing in GPG?
I have generated 3 pairs of public and private keys using gpg. I would like to sign a file with one of this 3 public keys and then verify which of this 3 keys was used to sign the file.
How can I accomplish this?
I tried to sign the file with gpg…

yak
- 3,770
- 19
- 60
- 111
4
votes
1 answer
python verifying a digital signature with a payload and public key string
I have a piece of data [ 'payload' ] which is Base64 encoded.
Then i have a 'signature' which contains the payload's signature.
I have a public key.
The signature algorithm is SHA512withRSA
How can I verify the authenticity of the data in Python ?…

Yogesh Singhal
- 121
- 1
- 7
4
votes
1 answer
Mockito spy object, verify with any() as argument
I have a simple unit test
Map spyMap = spy(Map.class);
spyMap.put("a", "A");
spyMap.put("b", "B");
InOrder inOrder = inOrder(spyMap);
inOrder.verify(spyMap).put(any(), any());
inOrder.verify(spyMap).put(any(), any());
But this…

user2689782
- 747
- 14
- 31
4
votes
1 answer
Mockito verify fails with "TooManyActualInvocations" for method with a default parameter in Scala
In below code, Mockito verify doesn't works as expected on scala methods with default parameter but works fine on methods with no default parameters.
package verifyMethods
import org.junit.runner.RunWith
import org.mockito.Mockito
import…

mogli
- 1,549
- 4
- 29
- 57
4
votes
2 answers
Verifying Hashed Password From MySQL Database
I am using Java in Eclipse and am storing a hashed password in my database when a new user is created. This is done with this code..
String hashed_password = Password.hashPassword(passwordField.toString());
String query = "insert into user…

drake
- 259
- 4
- 17
4
votes
1 answer
Verify method with Delegate parameter in Moq
Using Moq for generation of Stubs and Mocks in my unit tests, I have a case where I want to Verify that a method that takes a Delegate parameter is called. I don't care about the particular Delegate parameter supplied I just want to make sure that…

Hans Løken
- 407
- 1
- 6
- 15
4
votes
4 answers
How reliable is Verify() in Moq?
I'm only new to Unit Testing and ASP.NET MVC. I've been trying to get my head into both using Steve Sanderson's "Pro ASP.NET MVC Framework". In the book there is this piece of code:
public class AdminController : Controller
{
...
…

Mayowa Ayinde
- 191
- 3
- 10
4
votes
1 answer
Mockito - how to verify a method call made by an indirect private field object
I am trying to verify a method call made by an indirect private field object. For example
Code to Test:
class A
{
final private B b;
public A(C c, D d)
{
this.b = new B(c,d);
}
public void methodToTest()
{
…

user3808203
- 153
- 2
- 12
4
votes
1 answer
Verify signed PDF Document in PHP
I have a signed PDF document. It was signed by using TCPDF. Now I want to verify it. This is my solution:
Get content of signed pdf.
Get original content and signature value base on /ByRange field.
Get encrypted digest message from signature…

xuanhai266
- 423
- 3
- 13
4
votes
2 answers
AngularJS http.get verify valid json
When getting a json from a URL I only want to work with it, when the data is valid.
my approach so far by using JSON:
$http.get(
'data/mydata.json'
+ "?rand=" + Math.random() * 10000,
{cache: false}
)
…

JoachimR
- 5,150
- 7
- 45
- 50
4
votes
3 answers
Mockito Verify: Verified during verify() than during mocked method call
I call a method performAction with list of objects and verify the same. After this method is called, I modify some of the "objects".
Mockito verify fails saying that arguments don't match (showing modified objects) but I can see in debug mode that…

instanceOfObject
- 2,936
- 5
- 49
- 85
4
votes
6 answers
Verifying arithmetic sequence python
i'm just wondering how I could check to verify that a list of numbers is arithmetic or not using python, so whether there is a common number in between each item in the list.

Belgin Fish
- 19,187
- 41
- 102
- 131
4
votes
1 answer
Openssl command line fails to verify detached smime signature created moments earlier
I'm using the command line interface of openssl 1.0.1b on OSX 10.6.
First I create a DSA key.
openssl dsaparam -noout -out privatekey.pem -genkey 1024
Next i create a self-signed certificate from that key.
openssl req -new -outform PEM -out…

Kaso
- 123
- 1
- 7
3
votes
1 answer
is there a way to verify Firebase Dynamic Links on Play Console?
I have a Firebase Dynamic Link on my app. Seems that Play Console can not verify these links by default.
The indexing is fine since I can manually bind/add the App Link of my app through Android settings.
Since the website domain is provided by…

Victor Oliveira
- 3,293
- 7
- 47
- 77
3
votes
1 answer
KJUR jws jsrsasign: Cannot validate ES256 token on JWT.io
We are trying to make a JWT token for Apple Search Ads using the KJUR jws library. We are using the API documents from Apple:
https://developer.apple.com/documentation/apple_search_ads/implementing_oauth_for_the_apple_search_ads_api
We are…

Jack Kwakman
- 53
- 7