Utility library for working with smart cards