Open
Description
when we try encrypt/decrypt with APIs in terraform, we find that the result of decrypt operation of the encrypt result is not equal to the origin encrypted value. more discussion see hashicorp/terraform-provider-azurerm#20763
there are two different cases here:
with simple string
if pass a value like some-secret
to encrypt, then call decrypt with the result, the decrypted value changed to some-secres
with base64
when we pass a base64 encoded string with paddings(=
), like c29tZS1zZWNyZXQ=
, to encrypt, the result of decrypt will lost the padding characters.
To
Is this result as expected or any wrong with my usage on encrypt/decrypt APIs?
related operation definition: