venkatareddy
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2018
05:28 AM
roEVPCipher : Setup working for blowfish, but not for aes
I am trying to use roEVPCipher method to encrypt my data using aes-128-ecb cipher,
But Its failing in initial setup only, Setup returns error code as -1
Here is my code :
Please help me I am struggling from few days
But Its failing in initial setup only, Setup returns error code as -1
Here is my code :
cipher_obj = CreateObject("roEVPCipher")
ret = cipher_obj.Setup(true, "aes-128-ecb", "0123456789abcdef", "", 0)
if ret <> 0
print "Setup Error" ; ret
end if
Please help me I am struggling from few days
2 REPLIES 2
joetesta
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2018
05:40 AM
Re: roEVPCipher : Setup working for blowfish, but not for aes
Are you using the correct number of characters for the 128 bit key? According to this stackexchange answer
But your code has 16, try doubling your key length?
An AES 128-bit key can be expressed as a hexadecimal string with 32 characters.
But your code has 16, try doubling your key length?
aspiring
venkatareddy
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2018
10:54 PM
Re: roEVPCipher : Setup working for blowfish, but not for aes
"joetesta" wrote:
Are you using the correct number of characters for the 128 bit key? According to this stackexchange answerAn AES 128-bit key can be expressed as a hexadecimal string with 32 characters.
But your code has 16, try doubling your key length?
Thanks alot it works for me....Thank you so much