Convert encrypted string into binary format for picture conversion