暗号化
ThingWorx には、カスタムサービスで使用する暗号化サービスおよび機能が既成で用意されています。暗号化または復号化に使用されるキーが原因で、暗号化メソッドと復号化メソッドが交換できません。暗号化には必ず正しいメソッドを使用してください。以下の表に、使用可能な暗号化メソッドと復号化メソッドの組み合わせを示します。
暗号化/復号化 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