---
title: encoding
framework: cryptotokenkit
role: symbol
role_heading: Instance Property
path: cryptotokenkit/tksmartcardpinformat/encoding-swift.property
---

# encoding

The encoding of PIN characters. TKSmartCardPINEncodingASCII by default.

## Declaration

```swift
var encoding: TKSmartCardPINFormat.Encoding { get set }
```

## See Also

### Configuring PIN Formatting

- [charset](cryptotokenkit/tksmartcardpinformat/charset-swift.property.md)
- [minPINLength](cryptotokenkit/tksmartcardpinformat/minpinlength.md)
- [maxPINLength](cryptotokenkit/tksmartcardpinformat/maxpinlength.md)
- [pinBlockByteLength](cryptotokenkit/tksmartcardpinformat/pinblockbytelength.md)
- [pinJustification](cryptotokenkit/tksmartcardpinformat/pinjustification.md)
- [pinBitOffset](cryptotokenkit/tksmartcardpinformat/pinbitoffset.md)
- [pinLengthBitOffset](cryptotokenkit/tksmartcardpinformat/pinlengthbitoffset.md)
- [pinLengthBitSize](cryptotokenkit/tksmartcardpinformat/pinlengthbitsize.md)
