Use nodejs crypto library for creating a key during HTTP POST.