use open ssl way to hash with SHA1, and use Base64 strict encode