Parse encryption information into a datatype