Created
July 21, 2018 18:40
-
-
Save vasa-develop/e7175d9a65216bb3286942c3ba3b5788 to your computer and use it in GitHub Desktop.
DO NOT USE THIS CODE. THIS CODE IS USED TO DEMONSTRATE A VULNERABILITY IN A SOLIDITY CODE.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import "Rot13Encryption.sol"; | |
// encrypt your top secret info | |
contract EncryptionContract { | |
// library for encryption | |
Rot13Encryption encryptionLibrary; | |
// constructor - initialise the library | |
constructor(Rot13Encryption _encryptionLibrary) { | |
encryptionLibrary = _encryptionLibrary; | |
} | |
function encryptPrivateData(string privateInfo) { | |
// potentially do some operations here | |
encryptionLibrary.rot13Encrypt(privateInfo); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment