Chain keywords together: "uppercase md5 xyz"

Log in to Vote
4
4 Votes • 7 Comments
"md5 xyz" gives me "d16fb36f0911f878998c136191af705e" - great!

"uppercase d16fb36f0911f878998c136191af705e" gives me "D16FB36F0911F878998C136191AF705E" - great!

Would be even more great if I could chain them together, so I could "uppercase md5 xyz" and get straight to "D16FB36F0911F878998C136191AF705E".
• posted 4 years and 17 days ago Improvement

ScreapDK
Maybe one could separate triggers by "->"?

Like "uppercase -> md5 xyz".

It would work just like parentheses ( i.e. ( and ) ) in mathematics.
For example, "(1 + 2) - (3 + 4)" (with parentheses) equals "-4", but without parentheses (i.e. "1 + 2 - 3 + 4") equals "4".

This would mean the query "uppercase -> md5 xyz". would return this:
"D16FB36F0911F878998C136191AF705E" (i.e. what I want).

But moving the "->" to between "md5" and "xzy" (making it "uppercase md5 -> xyz") would return this:
c3f6ed0cf65375b73f0c9e4bc6b191a9 (i.e. not what I wanted).
posted by ScreapDK Community Leader4 years and 12 days ago Link
ScreapDK
Now when I think about... why not actually just parentheses? hehe :P
posted by ScreapDK Community Leader4 years and 12 days ago Link
ScreapDK
I mean I guess it would be difficult to use more than two queries when using "->".
posted by ScreapDK Community Leader4 years and 12 days ago Link
ScreapDK
Hmm... maybe not actually. If you just avoid thing like "sha-256 -> md5 password <- sha-512".

You can only go one way.

Like "sha-512 -> sha-256 -> md5 password".
posted by ScreapDK Community Leader4 years and 12 days ago Link
ScreapDK
BTW, this would make DDG start from the right, and go left.
Meaning start by MD5-ing "password" which would become "5f4dcc3b5aa765d61d8327deb882cf99", then sha-256-ing that, which is "3f2cd8e57b096fe7e4a78a5627e34ca3f885ad65a56e61c287cf4211bbc5949f" and then finally sha-512-ing that and end up returning "b81142cefaf9e9f88e3fe2f34d746dc0f226fc62ffb49a1938f5b199692f63e9e42f44bb3c4c8ba2d51e21d3dfd19ac8595b44dc8a97607f43fcc49344d34883".
posted by ScreapDK Community Leader4 years and 12 days ago Link
anonymous
Working right to left would make it logical:

uppercase md5 lowercase ABCD

- meaning "take ABCD, lowercase it, MD5 the result, and then uppercase the result of that".

Some sort of marker at the start to say this is a multi-question trigger keeps the same logic in the order of the question:

++ uppercase md5 lowercase ABCD
posted by <hidden> • 4 years and 12 days ago Link
This comment has been removed for violation of our forum rules.
posted by <hidden> • 4 years and 17 days ago