Changeset 100
- Timestamp:
- 01/25/08 11:44:05 (7 months ago)
- Files:
-
- incubator/encrypted_cookie_store/install.rb (modified) (1 diff)
- incubator/encrypted_cookie_store/README (modified) (1 diff)
- incubator/encrypted_cookie_store/tasks/encrypted_cookie_store_tasks.rake (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
incubator/encrypted_cookie_store/install.rb
r90 r100 1 # Install hook code here 1 puts IO.read(File.join(File.dirname(__FILE__), 'README')) incubator/encrypted_cookie_store/README
r90 r100 2 2 ==================== 3 3 4 This plugin will encrypt the session cookies for your rails app. 4 After installing this plugin, don't forget to run 5 5 6 Copyright (c) 2008 Aaron J. Bedra, released under the MIT license 6 rake secret 7 8 to generate the encryption keys. If you don't do this your app won't start. incubator/encrypted_cookie_store/tasks/encrypted_cookie_store_tasks.rake
r98 r100 5 5 task :secret do 6 6 File.open("./vendor/plugins/encrypted_cookie_store/config/secrets","w") do |file| 7 file. puts("#{Digest::SHA1.hexdigest("--#{rand.to_s}--")}")8 file. puts("#{Digest::SHA1.hexdigest("--#{rand.to_s}--")}")7 file.write("#{Digest::SHA1.hexdigest("--#{rand.to_s}--")}\n") 8 file.write("#{Digest::SHA1.hexdigest("--#{rand.to_s}--")}\n") 9 9 end 10 10 $stderr.puts "Wrote secret file"
