Today we succeeded to build the SHA256 module for the phone. There has been some wrong initialisation in the source so it took me 1/2 day to find it.

I have named the module pys60crypto. It includes SHA256 and SHA224 encryption. Those two SHA object have the following methods:

  • update()
  • copy()
  • digest()
  • hexdigest()

Usage :

import pys60crypto
x = pys60crypto.sha256("blabla")
print x.hexdigest()

You'll get :

ccadd99b16cd3d200c22d6db45d8b6630ef3d936767127347ec8a76ab992c2ea

I get an error when building for the phone. I'm waiting for an answer to fix this.