$:.push('.') require 'rbCFPropertyList' ahash = {"SALTED-SHA512"=> "\214\351\005 \250\224\204\2510M\231\004\312YH\336yk\v\372\313\v\236\372u\255g\177\343\234$wh\221\001\220@/\343:\227\270\203\214g\320\361%'\315J/\t\317\354\275\017\000\241\225\302\322G\026& \205\344"} ahash["SALTED-SHA512"].blob = true bpl = CFPropertyList::List.new bpl.value = CFPropertyList.guess(ahash) results = bpl.to_str fd = File.open("lala.plist", "wb") fd.write results fd.close