digital-signature

Digitally signing a docx with no need to open the document with C#

旧巷老猫 提交于 2019-12-11 01:35:24
问题 I tried this the code below but I failed to sign a document without opening it. Is it possible to sign a document with a certificate without opening it. object TempFilePath = TemporaryFolder + FileTempName; object Visible = false; object readonlyfile = false; try { object missing = System.Reflection.Missing.Value; Microsoft.Office.Interop.Word.ApplicationClass wordapp = new Microsoft.Office.Interop.Word.ApplicationClass(); Microsoft.Office.Interop.Word.Document wordDocument = wordapp

Error occurred while decoding OAEP padding

China☆狼群 提交于 2019-12-10 23:56:35
问题 I am half way through my problem.. Please Help.. I have successfully encrypted the text using public key of digital signatures but while decrypting it, I am getting the error. Error occurred while decoding OAEP padding. My code is a follows. #region Test Encryption public void a() { using (var rsa = new RSACryptoServiceProvider()) { // This String consists only Public Key Information String publicKeyOnly = rsa.ToXmlString(false); // This String consists both Private/Public Key information

Rotten performance of RSACryptoServiceProvider.VerifyData?

寵の児 提交于 2019-12-10 23:19:44
问题 Is the performance of VerifyData so bad that the function is practically useless, or am I doing something very wrong in the code below? open System open System.Security.Cryptography let keySize = 1024 // bits let testDataLen = 1000 let iterations = 100 let hashAlg = "SHA1" let timer f = let start = DateTime.Now f() |> ignore let finish = DateTime.Now finish - start let bench () = use rsaSP = new RSACryptoServiceProvider(keySize) let rnd = Random() let data = Array.create testDataLen 0uy rnd

OpenSSL S/MIME signature with .NET

独自空忆成欢 提交于 2019-12-10 22:58:51
问题 For an application I'm developing I need to create a signature file before I can upload files. The documentation of it explains how to do this with openssl: First you need to prepare your key: $ openssl pkcs12 -in certificate.pfx -passin pass:xxxxxxxxxx -out pem -clcerts -nokeys $ openssl pkcs12 -in certificate.pfx -passin pass:xxxxxxxxxx -passout pass:xxxxxx -out key After which you can sign any file using the following syntax: $ openssl smime -sign -in inputfile -signer pem -inkey key

Written Signature on Application in c# MVC3 (non hosted) as part of Employment Application

房东的猫 提交于 2019-12-10 19:47:37
问题 I'm trying to find a solution similar to http://www.tenstreet.com . I've tried looking around the internet and on sourceforge, but everything I find is about a cryptography digital signature (which I'll be using, but not what I'm lacking), not the image digital signature. I've found plenty of hosted solutions, but due to the nature of our business a hosted solution is not possible (where I work EVERYTHING pretty much must be done internal). Just in case this doesn't make sense I'll explain

How to Digitally Sign a SOAP request BODY in ColdFusion?

若如初见. 提交于 2019-12-10 19:44:50
问题 New one for me: I need to digitally sign and encrypt the body of SOAP request from a ColdFusion client application using a provider-issued certificate. I also need to decrypt the response in order to process it. I have searched for days an have found nothing. I have found information referencing other languages, but nothing in ColdFusion. If it is not possible to do it natively through the ColdFusion language API, can someone help me with possibly calling the correct Java or .net classes via

Signing my Jar files

只谈情不闲聊 提交于 2019-12-10 17:55:15
问题 I have made a Java Swing GUI and am trying to put it onto a website, I have put my html file in the lwjgl_jar folder and that solved my previous problem about not being able to find the AppletLoader but I am now getting a new error: Permissions for Applet Refused. Please accept the permissions dialogue to allow the applet to continue the loading process. The error appeared after telling Java to "run this time". So I searched online and found the solution to my problem is that the my jar files

Digital signature timestamp “not available” on XP/Vista, causing verification failure

倾然丶 夕夏残阳落幕 提交于 2019-12-10 15:39:54
问题 Background I have a WiX/Burn installation bundle which, among other things, installs the ReportViewer 2012 Runtime. When run on a Windows 7 or later machine, it works fine. On XP (SP3) or Vista (SP1) it fails. Now, checking the download page for the ReportViewer redistributable, I do notice it says it requires Vista SP2 or higher. Normally I would accept this, but a)I think this has recently changed, and b)downloading and manually installing this redistributable works. It's possible there are

OpenSSL C++ RSA sign is different from command line sign

半城伤御伤魂 提交于 2019-12-10 15:09:23
问题 I'm trying to sign a text in C++ and then verify it in the command line. I'm using OpenSSL libraries. This is my command line for key generation: openssl genrsa -out key.pem 1024 Now I have my private key. Then this is how I do to sign in command line: echo "hola" | openssl rsautl -pkcs -sign -inkey key.pem > sign.txt At this point all works like it seems to be, now I have a sign in sign.txt. Now I'm trying to do the same in C... This is my code: RSA * rsaPrivKey; RSA * createRSAWithFilename

How can I get PDVisibleSigProperties to write the signature on the 3 page into the signature box

守給你的承諾、 提交于 2019-12-10 14:48:12
问题 I am working with the pdfbox example signature CreateVisableSignature and I would like the code to write the image of the signature into a signature field called "ApplicantSignature" on the third page. Can someone give a clue as to why it writes the signature in the upper left corner of the first page? Here is the code: public static void main(String[] args) throws KeyStoreException, NoSuchAlgorithmException, CertificateException, FileNotFoundException, IOException, COSVisitorException,