openresty / openresty/lua-resty-string
lua aes ECB 128 decrypt error
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 443
- Forks
- 143
- Avg merge
- 2h 31m
- Merged PRs (30d)
- 1
Description
I tryed encrypt a text with a key with PHP code,then it is OK when decrypt it with Java and Object-C ,
mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $bindkey, $text, MCRYPT_MODE_ECB )
I dont know why do you need a sha1 when I just want want decrypt a ECB mode string
local aes_default = aes:new(key,nil,
aes.cipher(128,"ecb"),aes.hash.sha1)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the PHP MCRYPT_RIJNDAEL_128 ECB encryption and the Lua aes:new(key, nil, aes.cipher(128, "ecb"), aes.hash.sha1) setup shown in the issue. Compare the resulting ciphertext and decryption behavior, then determine what compatibility or documentation change is needed so the expected ECB operation is clear and verifiable.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua, php
- Domain
- cryptography
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100