import base64
import hashlib

coffees = {
    'covfefe': '<KEY>',
    'mg': '<KEY>',
    'raid': '<KEY>w-88102edd33ce49771e9c3dae53dd70660484ccaedd4271a93dd8c374a93ede99',
    'God': '<KEY>',
}

for key in coffees:
    s = coffees[key]
    with open('%s_serial' % key, 'wb') as f:
        f.write(base64.b64decode(s[:s.index('-')]))
    with open('%s_hash' % key, 'wb') as f:
        f.write(s[s.index('-')+1:].decode('hex'))

FLAG_BEAN = '<KEY>'
SALT = '<PASSWORD>chi@o'

print '%s-%s' % (FLAG_BEAN, hashlib.sha256(FLAG_BEAN+SALT).hexdigest())

import base64
import hashlib

coffees = {
    'covfefe': '<KEY>',
    'mg': '<KEY>',
    'raid': '<KEY>w-88102edd33ce49771e9c3dae53dd70660484ccaedd4271a93dd8c374a93ede99',
    'God': '<KEY>',
}

for key in coffees:
    s = coffees[key]
    with open('%s_serial' % key, 'wb') as f:
        f.write(base64.b64decode(s[:s.index('-')]))
    with open('%s_hash' % key, 'wb') as f:
        f.write(s[s.index('-')+1:].decode('hex'))

FLAG_BEAN = '<KEY>'
SALT = '<PASSWORD>chi@o'

print '%s-%s' % (FLAG_BEAN, hashlib.sha256(FLAG_BEAN+SALT).hexdigest())
