Generate a program to generate encryption keys from a string using Python.
Not applicable
import hashlib

# define the input string
input_string = 'ExampleString'

# generate a key
key = hashlib.sha256(input_string.encode()).hexdigest()

# output the key
print('Encryption key:', key)