digital-signature

How to sign a PDF in Android

拈花ヽ惹草 提交于 2019-12-19 08:06:21
问题 I have to implement in an Android application a function that allow me to sign a PDF, when i say "sign" I mean the digital signature (First and second name) affixed to the end of the document from the user. I have access to a Samsung Note 4 (with stylus) then it would not be a problem, "write" on the display. The question is: there is the possibility to sign a document using some library like itext or I must write a custom function ? 回答1: I guess you want to apply an electronic signature on a

Sign PDF documents digitally with Python

流过昼夜 提交于 2019-12-19 04:06:26
问题 I am trying to sign PDF documents with Python and found something called MyPDFSigner. It is well documented, however I found the documentation a bit confusing. The only problem I am having is on how to install the mypdfsigner module to run the code to sign a document. The documentation itself provided a code sample but while the module isn't installed I won't be able to run it: inputPath = "/tmp/input.pdf" outputPath = "/tmp/output.pdf" location = "Chicago, Illinois" reason = "Demo"

Verify javacard signature ALG_ECDSA_SHA on bouncy castle

跟風遠走 提交于 2019-12-19 04:05:50
问题 My problem looks like this: im generating a signature on javaCard (jcdk 2.2.2) and when when i want to verify it on the terminal using BouncyCastle the signature isnt always verified- 1 in 3,66 (average in 100 tries) signatures are verified, the rest in returning false. when i verify the signature on the card it always returns true, but on the terminal it usually returns false, but sometimes true. because the terminal sometimes gives a positive answer i think that the code is ok and the

Why does git sign with GPG keys rather than using SSH keys?

房东的猫 提交于 2019-12-19 00:57:09
问题 What are the differences between SSH and GPG asymmetric keys and why does git support signing with GPG rather than using the SSH agent? 回答1: The very first notion of signing anything in Git was referenced in commit ec4465a, Git v0.99, Apr. 2005 (pretty much from the very beginning) /** * A signature file has a very simple fixed format: three lines * of "object <sha1>" + "type <typename>" + "tag <tagname>", * followed by some free-form signature that git itself doesn't * care about, but that

NDK application Signature Check

半城伤御伤魂 提交于 2019-12-18 12:24:06
问题 I have some security key in an application. I want to store it securly. I like to store it in a native shared library (maybe generated from some code). After that I want it to be returned by a method that will check the signature of the original APK. So no one can use this file except trusted applications. I know, that ndk library could be also decompiled, but this is even harder to make reverse engineering of native code then java .class files. Question: Is there a way to calk the signature

Generate PDF with digital signature

痴心易碎 提交于 2019-12-18 11:56:03
问题 Is it possible to generate PDF file in PHP with digital signature? An open-source solution is preferred. 回答1: TCPDF starting from version 5.5.001 (released 2010-06-23) can sign generated PDF documents. It can also place transparent signature rectangle field over any bitmap/text, so clicking on the signature field brings up signature panel - cool feature. That same does seta-PDF signer, however you have to pay:-) If TCPDF extended with FPDI bridge, it can also parse already existing documents

Digitally sign data in browser using smart card or certificate

Deadly 提交于 2019-12-18 10:41:39
问题 I need to create digital signature of some XML data with a client certificate(smart card) using web browser. Usually I used to do it with a java applet executing on the client side. The benefit being multiplatform in terms of OS and browsers. However this option is getting increasingly harder and harder to implement and support in the long term. Virtually all browsers require some sort of action in order to execute such applet, code signing with a trusted certificate is almost mandatory

Checking digital signature programmatically from Delphi

天涯浪子 提交于 2019-12-18 10:04:10
问题 I need a function in Delphi to verify the digital signature of an external EXE or DLL. In my particular application, I am going to occasionally invoke other processes, but for security purposes I want to make sure these executables were created by our organization before running them. I have seen Microsoft's example in C, however, I do not want to waste the time translating this to Delphi if somebody else already has. I would prefer a snippet or code example over a third-party library. Thanks

How can I digitally sign an executable?

半世苍凉 提交于 2019-12-18 10:03:14
问题 I'm coding software that requires administrative access. When a UAC dialog pops up, it shows a different popup for digitally signed software than non-signed software. I believe digitally signing my software would enable users to trust my software easier. Does it cost thousands of dollars to digitally sign software, or is it free? Is there a simple way to do it? I've searched around Google and all I get is how to sign PHP, XML, and PDF files, which is not what I want. I need to sign my

Itext pdf deferred signing results in pdf with invalid signature

淺唱寂寞╮ 提交于 2019-12-18 09:37:33
问题 As part of my research for client/server pdf signing , i have tested itext pdf deferred signing example. Unfortunately my resulting pdf ie output of merged empty signature pdf and hash value shows invalid signature. My code snippets follows class MyExternalSignatureContainer implements ExternalSignatureContainer { protected byte[] sig; protected Certificate[] chain; public MyExternalSignatureContainer(byte[] sig,Certificate[] chain) { this.sig = sig; this.chain=chain; } public byte[] sign