The SDK is open source, so yes.  However, there is no need to generate the
encoded key on the client.  Why not just generate a GUID and use that as the
key name?  Or, setup an API in your app that you make an AJAX call to that
returns a key for you?

If you are still interested in the code:
http://code.google.com/p/googleappengine/source/browse/#svn%2Ftrunk%2Fpython%2Fgoogle%2Fappengine

Robert
On Jun 19, 2011 4:18 AM, "Yohan" <[email protected]> wrote:
> Hi Guys,
>
> I've been trying to generate a valid datastore Key manually in
> javascript. For some reason, i need the javascript to know the keys of
> the objects the server will generate before sending the request to the
> server (as long as both JS and Servlet generate the keys the same
> way).
>
> I couldn't find anywhere in the doc how the keys are generated. I
> tried decoding the keys but it includes a few binary data that changes
> depending on keys parents and stuff.
>
> Could we have access to the keys generation algorithm ?
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
[email protected].
> For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to