Шифрование
ThingWorx предоставляет сервисы и функции шифрования для использования в пользовательских сервисах. Методы шифрования и дешифрования не взаимозаменяемы из-за ключей, используемых для шифрования или дешифрования соответственно. Убедитесь, что используются правильные методы шифрования. В следующей таблице показано, какие методы шифрования могут использоваться с методами дешифрования. EncryptionServices использует алгоритм шифрования AES и поддерживает 128-, 192- и 256-битные ключи.
API шифрования и дешифрования
Взаимно совместимые API
EncryptionServices.Encrypt
EncryptionFunctions.encryptString
Нет
EncryptionServices.EncryptPropertyValue
EncryptionFunctions.encryptPropertyValue
Ничего нет непосредственно, но можно использовать следующие из 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
Было ли это полезно?