-
Notifications
You must be signed in to change notification settings - Fork 6
Decoding string
Raphael Kim edited this page Feb 21, 2017
·
1 revision
#include "endetool.h"
int main( int argc, char** argv )
{
EnDeTool ende;
// Set a cryptkey in maximum 32 bytes. (recommend to use in minimal 4 bytes)
ende.cryptkey( "123456789ABCDEFGHIJKLMNOPQRSTUVW" );
// Then input encrypted BASE-64 string here.
ende.encodedtext( "Cbn6Eh35iGslIcJtCBKp0GIpzxLAdUjMxxVoZe/OYy05YF2zm4HuGRcjOoxg//ARz2TV76CUdbcZMblS/tH05Q==" );
// Check text buffer.
const char* retstr = ende.text();
if ( retstr != NULL )
{
printf("%s\n", retstr );
}
else
{
printf("Failed to dencode.\n");
}
return 0;
}
This string will be encoded to AES-256, then BASE-64 again.