Stephen Paul Weber 17 anni fa
parent
commit
b03491fd28
1 ha cambiato i file con 13 aggiunte e 0 eliminazioni
  1. 13 0
      bytes2hex.rb

+ 13 - 0
bytes2hex.rb

@@ -0,0 +1,13 @@
+#!/usr/bin/ruby
+
+# Stephen Paul Weber
+# For use with mnmonicode
+# ISC license
+
+arr = []
+str = ""
+inarr = STDIN.read.split(//)
+inarr.each do |i|
+	print ("%x" % i[0]).rjust(2,'0')
+end
+puts