Page 1 of 2

Trying to create google api need sha1

Posted: Tue Apr 16, 2013 6:55 am
by Barbara

Has anyone done this and can tell me how I get the sha1 for my app?


Trying to create google api need sha1

Posted: Tue Apr 16, 2013 7:11 am
by Kateryna Grynko

Hi Barbara,

You would need to connect an external library CryptoJS: http://code.google.com/p/crypto-js/#S...


Trying to create google api need sha1

Posted: Tue Apr 16, 2013 7:16 am
by Kateryna Grynko

You can get the file on tiggzi.com: http://project.tiggzi.com/resources/p...


Trying to create google api need sha1

Posted: Tue Apr 16, 2013 8:50 am
by Barbara

How do I use that to get the sha1 key?


Trying to create google api need sha1

Posted: Tue Apr 16, 2013 9:28 am
by Kateryna Grynko

Tiggzi library adds the following functions:

  • hex_sha1(str)
  • b64_sha1(str)
  • str_sha1(str)
    You can use them for calculating SHA1.

Trying to create google api need sha1

Posted: Tue Apr 16, 2013 11:41 pm
by Barbara

How do I use them?


Trying to create google api need sha1

Posted: Wed Apr 17, 2013 12:10 am
by Alena Prykhodko

Hi!

We'll update.


Trying to create google api need sha1

Posted: Wed Apr 17, 2013 7:09 am
by Kateryna Grynko

Hi Barbara,

Each of these functions returns the same hash in different formats:

  1. HEX string
    hex_sha1("Test String") = "a5103f9c0b7d5ff69ddc38607c74e53d4ac120f2"
  2. Base64 string
    b64_sha1("Test String") = "pRA/nAt9X/ad3DhgfHTlPUrBIPI"
  3. Raw string:
    str_sha1("Test String") = "¥\u0010?œ\u000b}_öÜ8'|tå=JÁ ò"

Trying to create google api need sha1

Posted: Wed Apr 17, 2013 8:50 am
by Barbara

What I'm saying is that I don't know how to execute these functions or where. And google is asking for this format

24:45:66 etc for a lot of character


Trying to create google api need sha1

Posted: Wed Apr 17, 2013 10:16 am
by Kateryna Grynko

Please clarify what you need for Google API.
What functions do you need in your app?