Тут версия для секреток
http://blizzard.reactor.cc/post/3835397
http://blizzard.reactor.cc/post/3721554