https://github.com/pikulet/encryption-oracle-padding-oracle
padding oracle attack, encryption oracle
https://github.com/pikulet/encryption-oracle-padding-oracle
cryptography padding-oracle-attacks pkcs
Last synced: 3 months ago
JSON representation
padding oracle attack, encryption oracle
- Host: GitHub
- URL: https://github.com/pikulet/encryption-oracle-padding-oracle
- Owner: pikulet
- Created: 2019-10-24T10:48:40.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-24T11:12:42.000Z (about 6 years ago)
- Last Synced: 2025-09-02T13:04:31.050Z (4 months ago)
- Topics: cryptography, padding-oracle-attacks, pkcs
- Language: Python
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# crypto-tools
crypto tools written for practice
### padding oracle attack
This is the attack on (PKCS#5 padding)[https://en.wikipedia.org/wiki/Padding_(cryptography)#PKCS#5_and_PKCS#7].
Notes on the input/ output format of the padding oracle:
- The padding oracle I used is a 1-block decryption oracle
- Input: `"0x... 0x...."`. The two blocks represent the `(iv, ciphertext)` tuple.
- Output: "1" for valid padding, "0" for invalid padding.
### encryption oracle creator
Uses a decryption oracle to create an encryption oracle.
The message can be multi-block.
### Remarks
Development was done in python2, which is going to be deprecated. The algorithm still works, though.