Some scripts I write for fun.
chmod +x main.rb;
./main.rb;
chmod +X key_derivation.rb;
./key_derivation.rb password key_size
The key will be base64-encoded and stored in a JSON.
require "./key_derivation.rb"
dk = KeyDerivation.new
key = dk.kdf("password", 256)