Cipher - Validation Methodcipher

Source

CIPHER - VALIDATION (METHOD)

basic of cryptography has been made thusands years ago in the Caves. if you have key, can decoding. \

info

compare two strings by cipher(encode/encrypt) method.


example

function isValid(bytes4 pair, string memory key) public pure returns (bool) {
	bytes4 tmp = _encode(key);
	if(compare(pair, tmp)) return true;
	else return false;
}