Update with working keygeneration from byte => string => byte