# HG changeset patch # User Edho Arief # Date 1349299380 -25200 # Node ID 36d07f047ec2d0dcfb3af7eee6556a957012dc25 # Parent ba29d639486394aa24a296ad7296999fe503c9d0 Or maybe not. Still too long with b62. Backed out changeset ba29d6394863 diff -r ba29d6394863 -r 36d07f047ec2 app/models/paste.rb --- a/app/models/paste.rb Thu Oct 04 03:00:27 2012 +0700 +++ b/app/models/paste.rb Thu Oct 04 04:23:00 2012 +0700 @@ -6,7 +6,7 @@ validates :paste, :length => { :maximum => 1_000_000 } def set_paste_hash - self.paste_hash = Digest::SHA256.hexdigest("#{paste}\n") + self.paste_hash = Digest::SHA512.hexdigest("#{paste}\n") end def convert_newlines