use openssl instead of uniqid() to get fileids