Help please
Sorry if this is not nettalk related, although I will be using it with nettalk as a service..
Anyway.. I need to decode and decrypt a data string I'll be receiving on a URL.
similiar to this:
http://mytest.reddin.net/testa?data=+9PJM7jC8g1pdb0YnN19ZJl8eUgUfT8z5IOBGGq+4UPK8YSx1lT16Ghv9OsX+Kh6Q8+BCx2QgaePeLsHZn5xEAIKtkVOWM5xqqacEh3eMlaHDhQCWpETYz+lHWqMVXdYPython code looks so easy
secret_key = '1234567890123456'
cipher = AES.new(secret_key, AES.MODE_ECB)
encoded = '+9PJM7jC8g1pdb0YnN19ZJl8eUgUfT8z5IOBGGq+4UPK8YSx1lT16Ghv9OsX+Kh6Q8+BCx2QgaePeLsHZn5xEAIKtkVOWM5xqqacEh3eMlaHDhQCWpETYz+lHWqMVXdY'
decoded = cipher.decrypt(base64.b64decode(encoded))
data = json.loads(decoded)
so I took the encoded text and sent it to this web site
http://aesencryption.net/works like a charm I get the data back..
so I try doing the same in clarion..
My current code.
inbase64 = '+9PJM7jC8g1pdb0YnN19ZJl8eUgUfT8z5IOBGGq+4UPK8YSx1lT16Ghv9OsX+Kh6Q8+BCx2QgaePeLsHZn5xEAIKtkVOWM5xqqacEh3eMlaHDhQCWpETYz+lHWqMVXdY'
stbase.SetValue(inbase64, true)
stbase.Base64decode()
dataLen = stbase.length()
Password = '1234567890123456'
ProviderType = cs:PROV_RSA_AES
ProviderName = cs:MS_ENH_RSA_AES_PROV
Algorithm = cs:ALG_SID_AES_128
Crypto.DecryptString(stbase,datalen,Password,ProviderType,ProviderName,Algorithm)
but I get and error when I try to decrypt and frankly have no idea what it means..
http://screencast.com/t/tfK3UkaRJathat error is followed by the following error..
http://screencast.com/t/O8hbJhK5Kband of course nothing gets decrypted.
can it really be more difficult, or am I doing to enormous booboo here..
Best Regards...
Roberto Renz