This is definitely possible with Rewrite. You just have to create a rule that performs the transformation. You could for example create random strings and maintain a mapping which resolves the real URL from the random string.
However, I don’t think that it makes sense to include a concrete rule in Rewrite as many of the details depend on the specific usecase.
If you want to create such a rule yourself, do something like this: