in reply to Anonymising data

Look into the Crypt namespace. Don't use any "looks good" thing you just dreamed up. With the modules you can use real encryption or digesting more easily than you can implement something you make up on the spot.

After Compline,
Zaxo

Replies are listed 'Best First'.
Re^2: Anonymising data
by sauoq (Abbot) on Oct 20, 2005 at 16:41 UTC

    I'm guessing here but I get the feeling he isn't so much trying to encrypt anything as to just take a list of names (and addresses) and munge them into a list of fictional names (and addresses) for use as examples or what not.

    Like, maybe turning something like this...

    Jonathan Walker 12 Cross St. Hazard, KY 41701 James Beam 81 Donut Circle What Cheer, IA 50268 John Daniels 1 Lonely Dr. Solitude, IN 47620
    into something like this...
    James Daniels 81 Donut Dr Solitude, IN 47620 Jonathon Beam 12 Lonely Circle Hazard, KY 41701 John Walker 1 Cross St. What Cheer, IA 50268
    It's hard to say from his post, but that's how I read it. I wouldn't even try without seeing some sample data though.

    -sauoq
    "My two cents aren't worth a dime.";
    
      Bingo,

      This is exactly what I'm trying to do, Data Protection Act and all that, sorry for the lack of clarity there. There is no requirement to un-mung the data - in fact, if it can be unmunged, its bad.

      I thought this exact style of munging might be in a module already as it seems a standard thing you would want to do when dealing with sensitive test data.

      I'll write a small module and post for comments.

      Cheers

      Kevin