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
22
votes
2 answers

Is it recommended to Sign and Encrypt SAML AND use SSL?

Is it necessary to encrypt a SAML request if I am signing it with a my private key and sending it over SSL? Or would it be better practice to sign it using my private key, encrypt it using the identity providers public key AND transmit it over SSL?
nerdn
  • 329
  • 1
  • 3
  • 12
22
votes
1 answer

How to check if a file is signed in C#?

I'm writing a program that need to load a few other files. is there a way to check if those files are signed or not, without right clicking them and check? I use 300-400 files that change every few days I need to check DLL/EXE/CAB/OCX/MSI (and maybe…
Ben2307
  • 1,003
  • 3
  • 17
  • 31
21
votes
3 answers

What's the point of signing code, like jars?

What is the point of signing your code like Java's jars when everyone can do it with jarsigner? How does it provide security?
clamp
  • 33,000
  • 75
  • 203
  • 299
21
votes
2 answers

Can I sign a git tag after it was created?

I created a tag and forgot to sign it, then pushed the tag to GitHub. Is it possible to just sign that tag retroactively, or do I have to create a new tag? I have read the man page for git tag and googled a bit, but have come up with no clues that…
herzbube
  • 13,158
  • 9
  • 45
  • 87
20
votes
1 answer

What problem or threat does commit signing solve?

We use GitHub and we have a request to perform commit signing. After studying the process, it's not clear to me what problem commit signing solves. As I understand the process, there's "local source code" that gets committed to a "local repo" that…
jww
  • 97,681
  • 90
  • 411
  • 885
18
votes
3 answers

How to efficiently compare the sign of two floating-point values while handling negative zeros

Given two floating-point numbers, I'm looking for an efficient way to check if they have the same sign, given that if any of the two values is zero (+0.0 or -0.0), they should be considered to have the same sign. For instance, SameSign(1.0, 2.0)…
François Beaune
  • 4,270
  • 7
  • 41
  • 65
18
votes
6 answers

Javascript: convert a (hex) signed integer to a javascript value

I have a signed value given as a hex number, by example 0xffeb and want convert it into -21 as a "normal" Javascript integer. I have written some code so far: function toBinary(a) { //: String var r = ''; var binCounter = 0; while (a >…
mythbu
  • 657
  • 2
  • 7
  • 16
18
votes
7 answers

The digital signature is not trusted. Java will not allow any access to this application

I have a Java Web Start application, which I've tested on Windows 7, Linux and Mac OS X 10.7 (works fine on all). On Mac OS X 10.8 Mountain Lion the following error occurs, with no option to choose "Allow". The error looks like this: Does anyone…
sudo
  • 319
  • 2
  • 4
  • 10
17
votes
6 answers

Euro sign in HTML

The euro (€) is the official currency in 22 European states. In HTML there are different possibilities to display the sign €: € € € Which one would you use in HTML? I think no representation is supported in all browsers. It's a…
caw
  • 30,999
  • 61
  • 181
  • 291
16
votes
4 answers

Fastest way to flip the sign of a double / float in C

What is the fastest way to flip the sign of a double (or float) in C? I thought, that accessing the sign bit directly would be the fastest way and found the following: double a = 5.0; *(__int64*)&a |= 0x8000000000000000; // a = -5.0 float b =…
hennes
  • 9,147
  • 4
  • 43
  • 63
16
votes
2 answers

Signing commits with Git doesn't ask for my passphrase

I was trying to sign my commits with the command git commit -S but it fails without prompting my passphrase for my GPG key. The error is: error: gpg failed to sign the data fatal: failed to write commit object I noticed that if I run the following…
Oscar
  • 1,071
  • 13
  • 26
15
votes
4 answers

Sign SAML Response with or without Assertion Signature?

When signing a SAML Response that also has a signed Assertion, should I: A) Generate the Response signature without the Assertion signature. Then inject the Assertion signature after both signatures have been generated. B) Generate the Assertion…
Panman
  • 1,157
  • 2
  • 8
  • 19
15
votes
2 answers

how to swap tokens on uniswap using web3 js

I am trying to use uniswap contract method to simply swap eth for token, using eth from metamask wallet. Uniswap contract method is: function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline) external …
user3338991
  • 431
  • 2
  • 5
  • 9
15
votes
2 answers

Hash_hmac equivalent in Node.js

I have code that is working in my PHP app. In the PHP I sign the url with the following code: private static function __getHash($string) { return hash_hmac('sha1', $string, self::$__secretKey, true); } I am attempting to sign the URL in…
Sara Fuerst
  • 5,688
  • 8
  • 43
  • 86
15
votes
4 answers

Sign PDF with plain JavaScript

With WebCrypto API evolving and being supported by Chrome and Firefox, I would like to use it for digitally signing a PDF document. There is not much of literature around, but I found some examples [1] and a library called PKI.js [2]. In the…
ssc-hrep3
  • 15,024
  • 7
  • 48
  • 87
1
2
3
84 85