Shawn Willden edited this page Mar 7, 2015 · 1 revision

Unversioned Signing with Keyczar

Generate raw digest signature of a message without OutputHeader for use with other applications outside of Keyczar or for use with Unversioned Verification.


Java will either sign the message as a WebSafeBase64 if input as a java string or will not do any encoding if passed in as a byte string. A byte string will be returned if a byte string is input and a WebSafeBase64 java string will be returned if a java string is input.

Signer signer = new UnversionedSigner("/path/to/your/keys");
String signature = signer.sign("Message with Integrity");


Python will take in a string of bytes and return a WebSafeBase64 encoded SignatureFormat value. There are no options for other encodings.

signer = UnversionedSigner.Read("/path/to/your/keys")
signature = signer.Sign("Message with Integrity")


C++ will take in a string and return the WebSafeBase64 encoded SignatureFormat value. The Encoder can be set on the signer to None if no encoding is required.

std::string input, signature;
input = "Message with Integrity";
keyczar::Keyczar* signer =
if (!signer ||
    !signer->Sign(input, &signature)) {
  return 1;
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.