sha

The fingerprint you specified is already used by an Android OAuth2 client ID in this project or another project

允我心安 提交于 2020-01-02 07:57:06
问题 I noticed my SHA1 number showing from the gradle view signing report in android studio was different from the one I had originally. I thought maybe it was from changing computers a year ago. My game app was still able to access leaderboards and achievements. I when to my Google API dashboard I noticed the 'OAuth client' had my old SHA1. It wouldn't let me change it to my new SHA1, saying it 'had already been used by this client or another client', although I had no other clients. The

How do I use SHA-512 with Rfc2898DeriveBytes in my salt & hash code?

那年仲夏 提交于 2020-01-01 05:04:08
问题 I'm completely new to cryptography, but learning. I've pieced together many different suggestions from my research online, and have made my own class for handling the hash, salt, key stretching, and comparison/conversion of associated data. After researching the built-in .NET library for cryptography, I discovered that what I have is still only SHA-1. But I'm coming to the conclusion that it's not bad since I'm using multiple iterations of the hash process. Is that correct? But if I wanted to

Delphi: How to calculate the SHA hash of a large file

十年热恋 提交于 2020-01-01 02:48:09
问题 Hi I need to generate a SHA over a 5 Gig file Do you know of a non string based Delphi library that can do this ? 回答1: You should use DCPcrypt v2 and read your file buffered and feed the SHA hasher with the buffer until you've read the complete 5GB file. If you want to know how to read a large file buffered, see my answer about a file copy using custom buffering. so in concept (no real delphi code!): function GetShaHash(const AFilename: String) begin sha := TSHAHasher.Create; SetLength(Result

Android, calculating SHA-1 hash from file, fastest algorithm

自作多情 提交于 2019-12-31 21:21:21
问题 I have a problem with SHA-1 performance on Android. In C# I get calculated hash in about 3s, same calculation for Android takes about 75s. I think the problem is in reading operation from file, but I'm not sure how to improve performance. Here's my hash generation method. private static String getSHA1FromFileContent(String filename) { try { MessageDigest digest = MessageDigest.getInstance("SHA-1"); //byte[] buffer = new byte[65536]; //created at start. InputStream fis = new FileInputStream

How do I check if my SSL Certificate is SHA1 or SHA2 on the commandline

一个人想着一个人 提交于 2019-12-31 19:20:28
问题 How do I check if my SSL Certificate is using SHA1 or SHA2, from the commandline? And yes, i this is similar to this, but i need a cli-tool and i want to understand how it is done. 回答1: after googling for quite some time i came up with the following snippet (unix): openssl s_client -connect <host>:<port> < /dev/null 2>/dev/null | openssl x509 -text -in /dev/stdin | grep "Signature Algorithm" windows (thanx Nick Westgate, see below) certutil -dump cacert.pem | find "Algorithm" 回答2: I know the

How to make “MessageDigest SHA-1 and Signature NONEwithRSA” equivalent to “Signature SHA1withRSA ”

眉间皱痕 提交于 2019-12-31 17:08:14
问题 I am interested in applying a SHA-1 hash with RSA signature to some data, but I need to do it in two steps - apply hash first and then sign the data. The Signature.sign() function appears to create a more complex (ASN.1?) data structure that is ultimately signed (see this question). How can I make the two equivalent without using any external libraries like BouncyCastle? Apply hash and sign in single step with Signature: PrivateKey privatekey = (PrivateKey) keyStore.getKey(alias, null); ...

How to make “MessageDigest SHA-1 and Signature NONEwithRSA” equivalent to “Signature SHA1withRSA ”

北战南征 提交于 2019-12-31 17:08:10
问题 I am interested in applying a SHA-1 hash with RSA signature to some data, but I need to do it in two steps - apply hash first and then sign the data. The Signature.sign() function appears to create a more complex (ASN.1?) data structure that is ultimately signed (see this question). How can I make the two equivalent without using any external libraries like BouncyCastle? Apply hash and sign in single step with Signature: PrivateKey privatekey = (PrivateKey) keyStore.getKey(alias, null); ...

SHA256 base 64 hash generation in SQL Server

依然范特西╮ 提交于 2019-12-30 07:09:09
问题 I need to generate a SHA256 base 64 hash from a table in SQL server but I can't find that algorithm in the list HASHBYTES arguments. Is there a way to generate it directly in SQL Server? Duplicate disclamer: My question is not duplicate of SHA256 in T-sql stored procedure as I am looking for the SHA256 base 64 version of the algorithm which is not listed in the page. Numeric Example I have this query result in SQL Server Start date,End date,POD,Amount,Currency 2016-01-01,2016-12-31,1234567890

Where does Git store the SHA1 of the commit for a submodule?

让人想犯罪 __ 提交于 2019-12-28 02:23:48
问题 I know that when you add a submodule to a git repository it tracks a particular commit of that submodule referenced by its sha1. I'm trying to find where this sha1 value is stored. The .gitmodules and .git/config files only show the paths for the submodule, but not the sha1 of the commit. The git-submodule(1) reference only speaks of a gitlink entry and the gitmodules(5) reference doesn't say anything about this either. 回答1: It is stored in Git's object database directly. The tree object for

Generate self signed RSA-2048-SHA-256 certificate PFX file using openSSL

大城市里の小女人 提交于 2019-12-24 00:51:59
问题 I am trying to create a self signed RSA-2048-SHA-256 certificate PFX file, in order to use it for data signing in my WCF requests. I used some openSSL examples in order to create a certificate PFX file, but even though I set the SHA algorithm to 256, when I load it in my .net app, I see that this certificate's private key, has these settings: KeyExchangeAlgorithm = RSA-PKCS1-KeyEx SignatureAlgorithm = http://www.w3.org/2000/09/xmldsig#rsa-sha1 and when I use the code below in order to consume