73
Views
8
Comments
Solved
[Crypto Library Plugin] tmp.length is not a function
Question
crypto-library
Mobile icon
Forge asset by André Vieira

Hi,

Could you help with this plugin where my sample apps showing "tmp.length is not a function"

Here is my OML.


Thanks

EncryptDecrypt.oml
2014-02-13 10-06-38
Ricardo Silva
Solution

It's probably 32 bytes (256 bits)

2021-01-04 08-13-48
Toto
 
MVP

Ricardo Silva wrote:

It's probably 32 bytes (256 bits)

oh, Thank You :D


2021-01-04 08-13-48
Toto
 
MVP

Toto Hugo wrote:

Hi,

Could you help with this plugin where my sample apps showing "tmp.length is not a function"

Here is my OML.


Thanks

And this is the screenshot 


2014-02-13 10-06-38
Ricardo Silva

Hi,

Vignesh was having an apparently similar issue in this thread. Can you check if his solution also works for you?

2021-01-04 08-13-48
Toto
 
MVP

Ricardo Silva wrote:

Hi,

Vignesh was having an apparently similar issue in this thread. Can you check if his solution also works for you?

yes, i already try that and not working.


2017-03-03 12-48-17
Balasubramanian Prakasam

Toto Hugo wrote:

Ricardo Silva wrote:

Hi,

Vignesh was having an apparently similar issue in this thread. Can you check if his solution also works for you?

yes, i already try that and not working.



Hi Toto,


here i am attached new version of your oml, with working version, i just remove the keysize from 256 to 32, and i also include both encrypt and decrypt function working together.





Thanks,

Balu


EncryptDecrypt.oml
2021-01-04 08-13-48
Toto
 
MVP

Balu wrote:

Toto Hugo wrote:

Ricardo Silva wrote:

Hi,

Vignesh was having an apparently similar issue in this thread. Can you check if his solution also works for you?

yes, i already try that and not working.



Hi Toto,


here i am attached new version of your oml, with working version, i just remove the keysize from 256 to 32, and i also include both encrypt and decrypt function working together.





Thanks,

Balu


Thanks Balu, but why key size 32 ?

Doesn't this means using 32 bit not 256 bit ?


2014-02-13 10-06-38
Ricardo Silva
Solution

It's probably 32 bytes (256 bits)

2021-01-04 08-13-48
Toto
 
MVP

Ricardo Silva wrote:

It's probably 32 bytes (256 bits)

oh, Thank You :D


2017-03-03 12-48-17
Balasubramanian Prakasam

Hi Toto,

Yes as Ricardo said its 32 bytes is 256 bits, in the crypto lib they didnt be describe the value is bytes or bits, and more than 256 bits is not support, here some article just for you to know.

https://crypto.stackexchange.com/questions/5768/aes-key-length-greater-than-256-bits-is-it-dangerous-to-do-an-implementation-o


Thanks,

Balu

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.