diff --git a/lib/rbpkg/repo.rb b/lib/rbpkg/repo.rb
index b4e935a..29744f8 100644
--- a/lib/rbpkg/repo.rb
+++ b/lib/rbpkg/repo.rb
@@ -1,4 +1,5 @@
require 'fileutils'
+require 'sha256.rb'
class Rbpkg::Repo
diff --git a/lib/rbpkg/sha256.rb b/lib/rbpkg/sha256.rb
new file mode 100644
index 0000000..0d069dd
--- /dev/null
+++ b/lib/rbpkg/sha256.rb
@@ -0,0 +1,8 @@
+class Rbpkg::SHA256
+
+ def self.file(path)
+ content = File.read(path)
+ Digest::SHA256.hexdigest(content)
+ end
+
+end