Biblioteka crypto++ i sha256

0

Cześć
chciałem się pobawić szyfrowaniem i haszowaniem i trafiłem na takie coś

http://www.cryptopp.com/

zainstalowałem pod VS, napisałem coś odpaliłem niby działa ale wyniki są różne niż np haszowanie on line

http://www.xorbin.com/tools/sha256-hash-calculator

 
#include "stdafx.h"
#include <string>
#include <sha.h>
#include <base64.h>
#include <iostream>;

int main()
{
   CryptoPP::SHA256 hash;
   std::string digest;


   CryptoPP::StringSource foo("sha256", true,
   new CryptoPP::HashFilter(hash,
      new CryptoPP::Base64Encoder (
         new CryptoPP::StringSink(digest))));

   std::cout<<digest;

   return 0;
}

Czy ktoś może wie o co chodzi?

0

bo ja nieogar jestem

to jest w BASE 64 a na stronce HEX

1 użytkowników online, w tym zalogowanych: 0, gości: 1