Skip to content

encode('hex') doesn't exist for bytes in python3 #4

@Cypher1

Description

@Cypher1

Might be able to make use of something similar to the following to get around this but I'm not sure about backwards compatability.

print ''.join('{:02x}'.format(x) for x in os.urandom(40))

From:
https://stackoverflow.com/questions/19210414/byte-array-to-hex-string

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions