signing

Java Azure Request Signing

混江龙づ霸主 提交于 2019-12-03 14:15:21
问题 I am using the latest Azure SDK Storage emulator. I am trying to sign a request to my blob. When I run the below code I am getting auth error. I can't figure out what is wrong, although I have checked several times that the code conforms to the Azure SDK blob access specs. Here is the console output: GET x-ms-date:Sun, 23 Sep 2012 04:04:07 GMT /devstoreaccount1/tweet/?comp=list SharedKey devstoreaccount1:Hx3Pm9knGwCb4Hs9ftBX/+QlX0kCGGlUOX5g6JHZ9Kw= Server failed to authenticate the request.

XML SOAP Signing on Android

感情迁移 提交于 2019-12-03 14:07:15
问题 I need to sign XML SOAP requests in Android application. I did a little research and it seems that there is no framework that can do that on Android. Has anyone managed to do this? 回答1: After weeks of trying and testing finally I have managed to do manual XML signing on android. Here is the code: import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import java.security.PrivateKey; import javax.crypto.Cipher; import android.util.Log; /** * Generates Sha1withRSA

Signing and decoding with RSA-SHA in GO

泄露秘密 提交于 2019-12-03 09:36:21
问题 I'm trying to sign a string and later on verifying it with the public key. My verified result is empty. What am I doing wrong? package main import ( "crypto" "crypto/rand" "crypto/rsa" "crypto/sha256" "crypto/x509" "encoding/base64" "encoding/pem" "errors" "fmt" "io/ioutil" ) func main() { signer, err := loadPrivateKey("private.pem"); if err != nil { fmt.Errorf("signer is damaged: %v", err) } toSign := "date: Thu, 05 Jan 2012 21:31:40 GMT"; signed, err := signer.Sign([]byte(toSign)) if err !=

Why signed android apk is not running on emulator

社会主义新天地 提交于 2019-12-03 09:00:24
I have made a signed apk of an android project. Whenever my client try to run it on the emulator, he faces the following error message: D:\Android\android-sdk- windows\tools>adb install -r abc.apk 500 KB/s (6940708 bytes in 13.534s) pkg: /data/local/tmp/abc.apk Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES] What is the resolution? Dan Osipov In my case it was because I signed it on a machine running JDK 7. Downgrading to JDK 6 fixed the problem. Thanks java.lang.SecurityException when install apk for the suggestion! As mentioned by steelbytes, the error INSTALL_PARSE_FAILED_NO_CERTIFICATES

Clickonce signed application fails with “has a different computed hash than specified in manifest”. Mage fails to resolve issue

99封情书 提交于 2019-12-03 05:51:37
I've been really struggling with this one for days. I've seen other posts like ClickOnce Deployment Error: different computed hash than specified in manifest , but the solutions do not seem to work for me. I have a valid code signing certificate, and have been using it to sign my ClickOnce application for months. I realized I wasn't signing the executable and dlls themselves, so I attempt to do so. Now every time I publish and run the setup.exe, it fails with: "File, xxxxxx.dll, has a different computed hash than specified in manifest." If I do not sign the exe and Dlls, I can redeploy. I made

Java Azure Request Signing

倖福魔咒の 提交于 2019-12-03 05:11:07
I am using the latest Azure SDK Storage emulator. I am trying to sign a request to my blob. When I run the below code I am getting auth error. I can't figure out what is wrong, although I have checked several times that the code conforms to the Azure SDK blob access specs. Here is the console output: GET x-ms-date:Sun, 23 Sep 2012 04:04:07 GMT /devstoreaccount1/tweet/?comp=list SharedKey devstoreaccount1:Hx3Pm9knGwCb4Hs9ftBX/+QlX0kCGGlUOX5g6JHZ9Kw= Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature. Here is the

XML SOAP Signing on Android

家住魔仙堡 提交于 2019-12-03 04:03:48
I need to sign XML SOAP requests in Android application. I did a little research and it seems that there is no framework that can do that on Android. Has anyone managed to do this? After weeks of trying and testing finally I have managed to do manual XML signing on android. Here is the code: import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import java.security.PrivateKey; import javax.crypto.Cipher; import android.util.Log; /** * Generates Sha1withRSA XML signatures. */ public final class XmlSigner { /** Log tag. */ private static final String LOG_TAG =

Is there a way to determine whether an Android application is signed for production or debug at runtime?

╄→гoц情女王★ 提交于 2019-12-03 03:47:08
Is there a way to determine whether an Android application is signed for production or debug at runtime? Yes, but no 100% reliable. The default (auto-generated) certificate has the DN 'CN=Android Debug,O=Android,C=US' as described here . If you check the DN and it matches the default, it is most probably the debug certificate. Nothing prevents people from generating their own debug certificate or using the same one for production and debugging though. You can get the signing certificate using PackageManager . Something like: PackageManager pm = context.getPackageManager(); Signature sig =

Windows7 boot option to allow unsigned drivers ignored

隐身守侯 提交于 2019-12-03 02:07:50
I'm learning Windows kernel mode driver development. I've written a small test driver that I can successfully register, unregister, load and unload under Windows 7 32bit Ultima edition running under a VM in VirtualBox. My host is Windows 7 64bit Home Premium edition. The driver, compiled for 64 bit, will not load under Windows 7 Home edition. I keep getting a rejection noticed that this version of windows does not allow unsigned drivers. I've tried two things: I've used the F8 boot option to allow unsigned drivers (didn't work) I run a CMD as administrator and execute the following two

Windows UAC Security With Exe

◇◆丶佛笑我妖孽 提交于 2019-12-02 23:29:48
问题 I have an exe created with an old Borland C++ compiler. It needs administrator privileges to function correctly. Since the app will run at startup, I do not want the user prompted if it's OK to run the program (testing on Win7). My question is is there ANY way to remove that annoying prompt every time the app is run? I added a manifest file with admin privs and signed it, but it then still appears with the publisher name. This will be distributed, so I don't want users to have to turn off UAC