mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-24 14:23:36 -05:00
remove unnecessary std::replace
This commit is contained in:
parent
591d2ad864
commit
ebc5a116b2
@ -67,7 +67,8 @@ std::string publicKeyFromPrivate(std::string const &priv)
|
||||
// creat a copy to work on, need to convert it to standard base64
|
||||
auto priv_copy(priv);
|
||||
std::replace(priv_copy.begin(), priv_copy.end(), '~', '/');
|
||||
std::replace(priv_copy.begin(), priv_copy.end(), '-', '+');
|
||||
// replacing the - with a + is not necessary, as RsBase64 can handle base64url encoding, too
|
||||
// std::replace(copy.begin(), copy.end(), '-', '+');
|
||||
|
||||
// get raw data
|
||||
std::vector<uint8_t> dataPriv;
|
||||
|
Loading…
Reference in New Issue
Block a user