Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: Cryptic file names in iPhone backup

by bitingduck (Chaplain)
on Feb 17, 2015 at 16:07 UTC ( #1117001=note: print w/replies, xml ) Need Help??

in reply to Cryptic file names in iPhone backup

This is really more of an iOS question than a Perl question, but you can use Perl to sort of figure them out.

A little bit of searching indicates that the filenames are all SHA1 hashes of their "domain" and full file path separated by a dash, so that you can use Digest::SHA1 to do something like

my $data= $domain."-".$path; $digest = sha1($data);
and then compare $digest to filenames to see if you get the same thing. Since hashes are one-way functions (i.e. you can't run the algorithm backward to get the input information) you have to brute force it by guessing and hashing or use some google-fu to sort out details of the naming.

There's a little more information here:, but some more time spent searching will probably find you what you need.

Replies are listed 'Best First'.
Re^2: Cryptic file names in iPhone backup
by marek1703 (Acolyte) on Feb 17, 2015 at 18:10 UTC

    Thank you roboticus and biting duck

    This is a great help. I will look into your suggestions tomorrow!


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1117001]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2020-01-18 08:32 GMT
Find Nodes?
    Voting Booth?