demoversion: encrypting - WeOnlyDo Discussion board

demoversion: encrypting (wodCrypt)

by MFC, Thursday, October 14, 2010, 21:28 (2596 days ago)

Hi,

is it also possible to encrypt some data correctly with the demoversion?

I saw your example in the Getting-Started-Guide, but if I use these params (secretkey and textmessage) I didn`t get the same decryption result.

[code]
Dim crypt As New wodCryptCom
Dim i_blob As New MemBlob
Dim o_blob As New MemBlob
i_blob.Text = this is text to be encrypted
crypt.Type = AES
crypt.SecretKey = my secret word
crypt.Encrypt i_blob, o_blob
Debug.Print o_blob.ToBase64

result:
xHBuQv8ae1vXCVA6/3/YCd5IUjL3lbnbzHDjlWt74fGfcNuS3osQtID1BMhepJI3
[/code]

I didn`t have any additional characters in the key as well as in the text message. My result will be:

[code]UrVASSj9kHMr3cNWKMf8OJ7IFMahdAFnOtR/7cGFipw=[/code]

best regards
Hans


Complete thread: