From e328b59ffc2476262dbd076d2478aaade78e649c Mon Sep 17 00:00:00 2001 From: pdp8 Date: Wed, 28 Jun 2023 18:55:27 +0200 Subject: digest login, refactoring --- generate-digest.rb | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 generate-digest.rb (limited to 'generate-digest.rb') 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) -- cgit v1.2.3