Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re: regex for identifying encrypted text

by hippo (Canon)
on May 16, 2018 at 10:28 UTC ( #1214631=note: print w/replies, xml ) Need Help??

in reply to regex for identifying encrypted text

(1) Suggestions on how to construct such a regex?

Very difficult to avoid false positives because the last line of the key may only be a few characters.

(2) Suggestions on how to tackle the problem differently?

Text::Diff will happily work on arrays/scalars as well as files, so pre-process your inputs to remove any private keys before doing the diff - that way they are easy to identify.

  • Comment on Re: regex for identifying encrypted text

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1214631]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2018-07-22 01:13 GMT
Find Nodes?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

    Results (451 votes). Check out past polls.