mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-03 22:55:04 -04:00
remove unnecessary std::replace
This commit is contained in:
parent
591d2ad864
commit
ebc5a116b2
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue