summaryrefslogtreecommitdiff
path: root/generate-digest.rb
diff options
context:
space:
mode:
authorpdp8 <pdp8@pdp8.info>2023-06-28 18:55:27 +0200
committerpdp8 <pdp8@pdp8.info>2023-06-28 18:55:27 +0200
commite328b59ffc2476262dbd076d2478aaade78e649c (patch)
tree758f134e1b68af8a52fd2559c9fe704a62b9a040 /generate-digest.rb
parentdfaac96870ac6a86ebb0b5e5c9365e1e0ef6e5bc (diff)
digest login, refactoring
Diffstat (limited to 'generate-digest.rb')
-rw-r--r--generate-digest.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/generate-digest.rb b/generate-digest.rb
new file mode 100644
index 0000000..616ac81
--- /dev/null
+++ b/generate-digest.rb
@@ -0,0 +1,3 @@
+require "openssl"
+
+puts OpenSSL::Digest::SHA256.base64digest(ARGV.first.chomp)