Questions tagged [sign]

A digital signature is a mathematical scheme for demonstrating the authenticity of a digital message or document.

A digital signature is a mathematical scheme for demonstrating the authenticity of a digital message or document. A valid digital signature gives a recipient reason to believe that the message was created by a known sender, such that the sender cannot deny having sent the message (authentication and non-repudiation) and that the message was not altered in transit (integrity).

1267 questions
14
votes
2 answers

Any simple way to check if two numbers have different signs?

I have two floating point number a and b. I want to check if they have different signs. The easy way is to see bool b = a * b < 0; But the two numbers are very small and a * b might be underflow. Any other simple way to check it? Anyone thinking…
user1899020
  • 13,167
  • 21
  • 79
  • 154
14
votes
3 answers

Android System App Info

I would like some general info on system apps. I am working with a manufacturer who is willing to give me the info required to make my app a system app. However, I do not know exactly what this information should be and how to change with my app to…
alexward1230
  • 579
  • 3
  • 8
  • 25
14
votes
1 answer

How to sign pdf in Java using pdfbox

I am trying to sign pdf using pdfbox libraries. I have stuck now and realy need a help. This is my code: private static void signPdf(PDDocument document) throws Exception { PDSignature sig = new PDSignature(); …
Jakub C
  • 595
  • 1
  • 5
  • 14
13
votes
2 answers

How to solve no conscrypt_openjdk_jni in java.library.path error?

I want to sign my apk, so I executed the following command: java -jar signapk.jar platform.x509.pem platform.pk8 app-debug.apk ~/Desktop/test.apk but I got the following error: Exception in thread "main" java.lang.UnsatisfiedLinkError: no …
cong
  • 1,105
  • 1
  • 12
  • 29
13
votes
3 answers

Bouncycastle PGP decrypt and verify

I'm trying to decrypt and verify a PGP message using the java BouncyCastle libraries, but am running into issues, complaining about premature ends of PartialInputStream. I know the encrypt works fine, because I can decrypt and verify messages…
Ramo
  • 283
  • 1
  • 5
  • 15
13
votes
2 answers

How do you sign a Java Midlet?

A simple question with a fairly complicated answer: How do you sign a Java Midlet so you can load it onto a mobile phone with less security prompts?
David Hayes
  • 7,402
  • 14
  • 50
  • 62
12
votes
1 answer

Android - Export encrypted key for enrolling published apps

In Android Studio, what is the "export encrypted key for enrolling published apps" function when generating signed APK/bundle?
Greelings
  • 4,964
  • 7
  • 34
  • 70
12
votes
2 answers

Digitally signing a PDF, using PHP, Zend, and openssl

I'm trying to build a simple PDF document signing routine, using PHP, openssl, and the Zend framework (for pdf redering/handling). I've found this, but it simply won't work, Zend is not able to open any pdf's, not even Zend's own test pdf and Zend…
jbrain
  • 561
  • 3
  • 7
  • 18
11
votes
4 answers

C# (If < or If >) vs Math.Sign

Might be a silly question, but is there any reason to use Math.Sign? Is there a speed/optimization thing with using Math.Sign rather than just using an if statement? Perhaps just a best practice/code readability preference? if (rayDirX < 0) …
Mythics
  • 773
  • 1
  • 10
  • 19
11
votes
3 answers

Git error: gpg failed to sign the data on Linux

I am having trouble signing commits. With the following git config: user.name=Bob user.email=[bob's email] user.signingkey=ABCDEFGH user.user=bob1 gpg.program=gpg2 I was told to include only the first eight characters of the secret key. After…
pmcg521
  • 349
  • 1
  • 4
  • 15
11
votes
1 answer

How to disable Kernel Module Signing in linux

I'm working with a real time scheduler developed at my university and when I run it I get "module verification failed: signature and/or required key missing - tainting kernel". I've learned that it might be because of some kernel module signing. Is…
Dave
  • 341
  • 1
  • 4
  • 13
11
votes
2 answers

GPG sign all git commits without stash

git 2.0 has the config option commit.gpgsign which will sign all commits. This will also apply for git stash and will ask for the password of my gpg key. Is ther a way to automatically sign all commits, tags,... but exclude stashes?
f0i
  • 167
  • 3
  • 9
11
votes
1 answer

VS2012 Signing Assembly Error - "Cannot find the certificate..."

I'm trying to sign my app in VS2012 but I'm receiving "Cannot find the certificate and private key for decryption" error. What I do: I received my certificate by Comodo CA Limited in Google Chrome. Exported the certificate to a file with "Include…
Miroslav Popov
  • 3,294
  • 4
  • 32
  • 55
11
votes
1 answer

How to get Information from a security token with C#

I need to enable my applications' users to sign their approvals with their personal USB security token. I've managed to sign data but I haven't been able to get the information of who's token has been used to do so. Here is the code I have so…
daniloquio
  • 3,822
  • 2
  • 36
  • 56
10
votes
2 answers

jwt.io says Signature Verified even when key is not provided

I signed a jwt in nodejs with the below snipet. var jwtoken = jwt.sign({ email: 'test@test.com', name: 'test' }, 'abcd'); I got the below token after…
ArunJose
  • 1,999
  • 1
  • 10
  • 33
1 2
3
84 85