Barbara
Posts: 0
Joined: Mon Sep 17, 2012 8:42 am

Trying to create google api need sha1

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

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Trying to create google api need sha1

Hi Barbara,

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

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Trying to create google api need sha1

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

Barbara
Posts: 0
Joined: Mon Sep 17, 2012 8:42 am

Trying to create google api need sha1

How do I use that to get the sha1 key?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Trying to create google api need sha1

Tiggzi library adds the following functions:

  • hex_sha1(str)
  • b64_sha1(str)
  • str_sha1(str)
    You can use them for calculating SHA1.
Barbara
Posts: 0
Joined: Mon Sep 17, 2012 8:42 am

Trying to create google api need sha1

How do I use them?

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Trying to create google api need sha1

Hi!

We'll update.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Trying to create google api need sha1

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Á ò"
Barbara
Posts: 0
Joined: Mon Sep 17, 2012 8:42 am

Trying to create google api need sha1

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

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Trying to create google api need sha1

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

Return to “Issues”