require 'service.rb' class LocalSecureFileStoreApp0 p=path(name+"_"+key) f=File.open(p,"w") f.print content f.close true else false end end private def hash(value) Crypt::hexdigest(value.to_s) end def path(file) File.join(getAppDataPath,file) end def read(file) f=File.open(file) c=f.read f.close c end def check(name) name.gsub(/[^a-zA-Z0-9_]/,"") end end