Integer (0-9)

Details about the Integer token type.

The Integer token type tokenizes 2, 4, or 8 byte size integers.

Table: Integer Tokenization Type properties


Tokenization Type Properties

Settings

Name

Integer

Token type and Format

2, 4, or 8 byte size integers

Tokenizer

Length Preservation

Minimum Length

Maximum Length

SLT_1_3

Yes

2 bytes

8 bytes

Possibility to set Minimum/ maximum length

No

Left/Right settings

No

Internal IV

No

External IV

Yes

Return of Protected value

Yes

Token specific properties

Size 2, 4, or 8 bytes

The following table shows examples of the way in which a value will be tokenized with the Integer token.

Table: Examples of Integer tokenization values

Input ValueTokenized ValueComments
1231345Integer, SLT_1_3, Left=0, Right=0, Length Preservation=Yes
31465For 2 bytes, the values can range from -32768 to 32767.
3782939681For 4 bytes, the values can range from -2147483648 to 2147483647.
37268379031142372719For 8 bytes, the value range can range from -9223372036854775808 to 9223372036854775807.

The pty.ins_integer UDF in the Oracle, Teradata, and Impala Protectors, supports input data length of 4 bytes only. For 2 bytes, the following error is returned: Invalid input size.

Integer Tokenization Properties for different protectors

Application Protector

The following table shows supported input data types for Application protectors with the Integer token.

Table: Supported input data types for Application protectors with Integer token

Application ProtectorsAP JavaAP Python
Supported input data typesSHORT: 2 bytes

INT: 4 bytes

LONG: 8 bytes
INT: 4 bytes and 8 bytes

If the user passes a 4-byte integer with values ranging from -2,147,483,648 to +2,147,483,647, the data element for the protect, unprotect, or reprotect APIs should be an 4-byte integer token type. However, if the user uses 2-byte integer token type, the data protection operation will not be successful. For a Bulk call using the protect, unprotect, and reprotect APIs, the error code, 44, appears. For a single call using the protect, unprotect, and reprotect APIs, an exception will be thrown and the error message, 44, Content of input data is not valid appears.

For more information about Application protectors, refer to Application Protector.

Big Data Protector

Protegrity supports MapReduce, Hive, Pig, HBase, Spark, and Impala, which utilizes Hadoop Distributed File System (HDFS) or Ozone as the data storage layer. The data is protected from internal and external threats, and users and business processes can continue to utilize the secured data. Protegrity protects data inside the files using tokenization and strong encryption protection methods.

The following table shows supported input data types for Big Data protectors with the Integer token.

Table: Supported input data types for Big Data protectors with Integer token

Big Data ProtectorsMapReduce*2HivePigHBase*2ImpalaSpark*2Spark SQLTrino
Supported input data types*1INT: 4 bytes

LONG: 8 bytes
INT: 4 bytes

BIGINT: 8 bytes
INT: 4 bytesBYTE[]SMALLINT: 2 bytes

INT: 4 bytes

BIGINT: 8 bytes
SHORT: 2 bytes

INT: 4 bytes

LONG: 8 bytes
SHORT: 2 bytes

INT: 4 bytes

LONG: 8 bytes
SMALLINT: 2 bytes

INT: 4 bytes

BIGINT: 8 bytes

*1 – If the input and output types of the API are BYTE[], then the customer application should convert the input to and output from the byte array, before calling the API.

*2 – The Protegrity MapReduce protector, HBase coprocessor, and Spark protector only support bytes converted from the string data type. Bytes as input that are not generated from string data type might cause data corruption to occur when:

  • Any other data type is directly converted to bytes should be passed as input to the MapReduce or Spark API that supports byte as input and provides byte as output.
  • Any other data type is directly converted to bytes and inserted in an HBase table. Where the HBase table is configured with the Protegrity HBase coprocessor.

For more information about Big Data protectors, refer to Big Data Protector.

Data Warehouse Protector

The Protegrity Data Warehouse Protector is an advanced security solution designed to protect sensitive data at the column level. This enables you to secure your data, while still permitting access to authorized users. Additionally, the Data Warehouse Protector integrates seamlessly with existing database systems using the User-Defined Functions for an enhanced security. Protegrity protects data inside the data warehouses using various tokenization and encryption methods.

The following table shows the supported input data types for the Teradata protector with the Integer token.

Table: Supported input data types for Data Warehouse protectors with Integer token

Data Warehouse ProtectorsTeradata
Supported input data typesSMALLINT: 2 bytes

INTEGER: 4 bytes

BIGINT: 8 bytes

For more information about Data Warehouse protectors, refer to Data Warehouse Protector.

Database Protectors

The following table shows supported input data types for Database protectors with the Integer token.

Table: Supported input data types for Database protectors with Integer token

ProtectorOracleMSSQL
Supported Input Data TypesINTEGERINTEGER

For more information about Database protectors, refer to Database Protectors


Last modified : March 05, 2026