We are using key from key vault to encrypt a token. The token includes user id. For some of the users, the length is big. so encryption is failing as it supports only 255 characters. Is there any way we can handle it?
'kty': 'RSA',
'key_size': 2048,
'key_ops': [
'encrypt',
'decrypt'
],
'key_attributes': { expires: date },
'attributes': {
'recoveryLevel': 'Recoverable',
'enabled': true
}