Skip to content

Commit f67a25a

Browse files
committed
modify base64
1 parent bb531b5 commit f67a25a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/utils.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ utility::string_t get_sign(utility::string_t &private_key, const utility::string
5656
utility::string_t filled_private_key = fill_private_key_marker(private_key);
5757

5858
utility::string_t encrypted = sha1_sign(content, filled_private_key);
59-
return TIGER_API::base64_encode(encrypted);
59+
std::vector<unsigned char> vec(encrypted.begin(), encrypted.end());
60+
return utility::conversions::to_base64(vec);
61+
// return TIGER_API::base64_encode(encrypted);
6062
}
6163

6264
bool verify_sign(utility::string_t public_key, const utility::string_t &content,

0 commit comments

Comments
 (0)