Some crypto utils.