Chiffrement
ThingWorx fournit des services et des fonctions de chiffrement directement utilisables dans vos services personnalisés. Les méthodes de chiffrement et de déchiffrement ne sont pas interchangeables en raison des clés utilisées pour le chiffrement ou le déchiffrement, respectivement. Veillez à utiliser les méthodes de chiffrement appropriées. La table suivante indique quelles méthodes de chiffrement sont utilisables avec quelles méthodes de déchiffrement.
API de chiffrement/déchiffrement
API opposée compatible
EncryptionServices.Encrypt
EncryptionFunctions.encryptString
AUCUNE
EncryptionServices.EncryptPropertyValue
EncryptionFunctions.encryptPropertyValue
Aucune directement ; cependant, vous pouvez utiliser la méthode suivante du kit Extension SDK : BaseTypes.ConvertToPrimitive, PasswordPrimitive.convertFromObject, PasswordPrimitive.getDecryptedValue
EncryptionServices.EncryptWithKey
EncryptionServices.DecryptWithKey
EncryptionServices.DecryptWithKey
EncryptionServices.EncryptWithKey
EncryptionFunctions.encryptStringWithKey
EncryptionFunctions.decryptStringWithKey
EncryptionFunctions.decryptStringWithKey
EncryptionFunctions.encryptStringWithKey
EncryptionFunctions.base64EncodeString
EncryptionFunctions.base64DecodeString
EncryptionFunctions.base64DecodeString
EncryptionFunctions.base64EncodeString
EncryptionFunctions.base64EncodeBytes
EncryptionFunctions.base64DecodeBytes
EncryptionFunctions.base64DecodeBytes
EncryptionFunctions.base64EncodeBytes