meta-digi/meta-digi-dey/classes
Tatiana Leon 38740f9a04 trustfence: get bytes from the console passphrase to feed the hash method
In Python 3, feeding string objects into hash method is not supported. Hashes
work on bytes, not on characters.

So we use 'encode()' on the passphrase to get the bytes object.

See:
 * https://docs.python.org/3/howto/pyporting.html#text-versus-binary-data
 * https://docs.python.org/3/library/hashlib.html#module-hashlib

This commit fixes build failures as:

Exception: TypeError: Unicode-objects must be encoded before hashing

https://jira.digi.com/browse/DEL-3984

Signed-off-by: Tatiana Leon <tatiana.leon@digi.com>
2017-03-27 10:38:13 +02:00
..
dey-image-installer.bbclass meta-digi-dey: implement class to generate installer zip package 2017-02-02 13:32:18 +01:00
dey-image.bbclass meta-digi-dey: implement class to generate installer zip package 2017-02-02 13:32:18 +01:00
trustfence.bbclass trustfence: get bytes from the console passphrase to feed the hash method 2017-03-27 10:38:13 +02:00