加密
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
這是否有幫助?