Both are executed with the same expressions but the base of the encrypted expression is different. I know the value of the encrypted phrase always changes, but I mean the base, not the value
You have to pass them as hex not as strings…
BLOCK:ConstantString
LABEL:PASSWORDD
value = "Sadegh123!@"
=> VAR @PASSWORDD
ENDBLOCK
BLOCK:RSAPkcs1Pad2
LABEL:Rsa
plainText = @PASSWORDD
modulus = yYHBKCix1N2wmAlSjuRedk0DGgMR+RV4qJkmYyQjrfD9eB0Qzn4irIkDTHh6wNJwpmDPuYIoL8m/PiQbK5q0lLVN+PCb0VjhSS3OsPawLwrxp8V9LQRVmHtjorbdRUb/qCNevw5fM5F3TBHr3U8CgRScbwM0aEtH2AQjBarjT3vUbA6oO59UO3+DLK852DRapoKxugSp1cBXhzPDZP0E5ZgFMkZIgT8rWZzPTsuBAG9XqVMP6yCJobjn4sCfg8ZGnfQUAcP9WNVsIiuzrVFFqAchfupSyevGrRWos0DWmaZysra21EJZq3rkn11iD5DGTjZKTOPnUkadkQNBBK8F1w==
exponent = AQAB
=> VAR @Rsa
ENDBLOCK
BLOCK:ByteArrayToBase64String
LABEL:Byte_to_64
bytes = @Rsa
=> VAR @Byte_to_64
ENDBLOCK
Thing is that modulus and exponent are variables too, can’t just put them as plain text.
Then parse them as strings and use the hex => bytes block to convert them to byte arrays. Finally pass those byte arrays as variables to these parameters ^^
1 Like
I get this error now
Hex => Bytes (Hex => Bytes) <<
Converting asdfasdf to a byte array
[Executing block Hex => Bytes] FormatException: Additional non-parsable characters are at the
end of the string.
It tells you the error. There’s something that is not hexadecimal.
I also encountered this problem. Have you solved it. How to solve it?
I did the same exact this as you have shown here, just that the constant string is json and I’m not getting correct output…
for my current status: