we already have this in commonutils under NSData category, can we reuse that?