[crypt][rsa] Fix base64 detection algorithm and add specific modes for avoid magic detection