-
Notifications
You must be signed in to change notification settings - Fork 731
Home
Welcome to the Android-PIN-Bruteforce wiki!
https://github.com/urbanadventurer/Android-PIN-Bruteforce/wiki/Phone-Database
def formatted_duration(total_seconds) days = total_seconds / (60 * 60 * 24) hours = total_seconds / (60 * 60) hours -= (24 * days) if days >= 1 minutes = (total_seconds / 60) % 60 seconds = total_seconds % 60
"#{days}d #{hours}h #{minutes}min #{seconds}s"
end
irb(main):015:0> (1..25).each { |x| seconds = 15*2**x; puts "#{x}\t#{seconds}\t\t#{formatted_duration(seconds)}" } 1 30 0d 0h 0min 30s 2 60 0d 0h 1min 0s 3 120 0d 0h 2min 0s 4 240 0d 0h 4min 0s 5 480 0d 0h 8min 0s 6 960 0d 0h 16min 0s 7 1920 0d 0h 32min 0s 8 3840 0d 1h 4min 0s 9 7680 0d 2h 8min 0s 10 15360 0d 4h 16min 0s 11 30720 0d 8h 32min 0s 12 61440 0d 17h 4min 0s 13 122880 1d 10h 8min 0s 14 245760 2d 20h 16min 0s 15 491520 5d 16h 32min 0s 16 983040 11d 9h 4min 0s 17 1966080 22d 18h 8min 0s 18 3932160 45d 12h 16min 0s 19 7864320 91d 0h 32min 0s 20 15728640 182d 1h 4min 0s 21 31457280 364d 2h 8min 0s 22 62914560 728d 4h 16min 0s 23 125829120 1456d 8h 32min 0s 24 251658240 2912d 17h 4min 0s 25 503316480 5825d 10h 8min 0s
https://github.com/urbanadventurer/Android-PIN-Bruteforce
irb(main):001:0> (1..25).map { |n| 15*2**n } => [30, 60, 120, 240, 480, 960, 1920, 3840, 7680, 15360, 30720, 61440, 122880, 245760, 491520, 983040, 1966080, 3932160, 7864320, 15728640, 31457280, 62914560, 125829120, 251658240, 503316480] irb(main):002:0>