Simple client-side port of BSON ObjectID