Discussion about recent product features & solutions!
-
kilianvp
- Posts:443
- Joined: Fri Jan 16, 2015 10:29 am
cryptAES funktion
Post
by kilianvp »
Hey im using cryptAES() from CtrlRDBArchive.dll to encrypt my Strings.
decryptAES() works too but i need decryption outside from WinCC OA.
Code: Select all
main()
{
string sCrypted;
string sKey = "Yang4sooquasooca";
string password = "sometext";
string sEncryped;
cryptAES(password, sKey, sCrypted);
DebugN(sCrypted);
DebugN(tohex(sCrypted));
decryptAES(sCrypted, sKey, sEncryped);
DebugN(sEncryped);
}
string tohex(string text)
{
string ud_str, b;
char c;
for(int i=0; i
-
Gertjan van Schijndel
- Posts:634
- Joined: Mon Aug 02, 2010 10:37 am
Re: cryptAES funktion
Post
by Gertjan van Schijndel »
Did you also try it with the 'aes256Encrypt()' function from 'CtrlCrypt' with 3.13 or higher? Perhaps this function is easier to decrypt with openssl.
-
kilianvp
- Posts:443
- Joined: Fri Jan 16, 2015 10:29 am
Re: cryptAES funktion
Post
by kilianvp »
good idea thanks
-
kilianvp
- Posts:443
- Joined: Fri Jan 16, 2015 10:29 am
Re: cryptAES funktion
Post
by kilianvp »
Problem solved. I can encrypted a string and send it to my Android Device and decrypt it there now
