Tag Info

New answers tagged


A well-formed XML document is subject to all sorts of constraints. You can incorporate these constraints into a function that checks a base64 substitution key by looking for invalid syntax, such as improperly nested tags, or a tag name containing control characters, white space, or any of the characters !"#$%&'()*+,/;<=>?@[\]^`{|}~, or that starts ...


Your bad hash computes each byte of digest from only two bytes of message, resulting in very few small equations which can be solved by many automated tools. I've made the assumption that digest[0] = (129*msg[0]) XOR msg[15]. Expressing this hash in Cryptol we get: badHash : [16][8] -> [16][8] badHash msg = [ x ^ y | x <- mul | y <- (msg @@ ...

Top 50 recent answers are included