Unicode characters are used in Complex Generation Example (Section 5.3 of XEP), but looks like they are ignored in resulting hash value.
I've tried to build the same string, coded it into utf-8 and to get SHA-1 hash for it and I got "XDu6S9Xwp17+ZL0Ug4CIuR36adI=", while hash in example is "q07IKJEyjvHSyhy//CH0CxmKi8w=". To determine the reason I've played with encodings and found that I receive the hash from example if verification string is encoded by "latin-1" codec, which is possible invalid behaviour (as original string contains non-latin symbols).
May be resulting hash should be fixed in example?
Ruslan
Good day, Florian,
Yes, I've tested again - my fault... There is no error in example, so I'm sorry.
With best regards,
Ruslan
Thanks for checking!
Peter
- --
Peter Saint-Andre
https://stpeter.im/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk9uyXkACgkQNL8k5A2w/vwufQCghf1kk4IOUWPPaPm6VtpNcNIf
Z9kAnA/vnbmN7fCWLdZVE9CAdh1g9S8f
=VkAL
-----END PGP SIGNATURE-----