Skip to main content

Home/ Python Programming/ Group items tagged password

Rss Feed Group items tagged

reckoner reckoner

Human-Readable Encryption Keys - 0 views

  • in PyCrypto: >>> key = os.urandom(16) # Generate 16 random bytes (128 bits) >>> bin_to_hex(key) # Show the key in hex (32 characters) '61aa60e43a5e7fdb4b86a4897b52a0dc' >>> y = RFC1751.key_to_english(key) >>> y # Show the pass phrase version of the key 'BUSY BARN RUB DOLE TAUT TOOK ALTO PRY KIT WALL MUG CURT' >>> # The transformation is always reversible >>> bin_to_hex(RFC1751.english_to_key(y)) '61aa60e43a5e7fdb4b86a4897b52a0dc'
  • Human-Readable Encryption Keys
1 - 1 of 1
Showing 20 items per page