Having removed ruby 1.8.7 support, use base64digest method built into ruby 1.9+