01
Hash
A fixed-length fingerprint of a document. Change one letter, and the whole fingerprint is different. It’s the hash that gets signed, under GOST R 34.11-2012 “Streebog”.
SHA-256—
GOST R 34.10-2012 · free · no sign-up
A test certificate for the sandbox, signing and verification, encryption for a counterparty, ASN.1, Base64 and JWT analysis. In the browser; keys never leave your computer.
How it works
Real codes need a qualified signature, and with it Truemark 7 days free
Truemark Crypto
Electronic signature basics
Six concepts that electronic signatures in Chestny ZNAK, EDI and government systems rest on. Briefly and with examples.
01
A fixed-length fingerprint of a document. Change one letter, and the whole fingerprint is different. It’s the hash that gets signed, under GOST R 34.11-2012 “Streebog”.
SHA-256—
02
The private key is stored in a CryptoPro container or on a token and is never handed over. The public key is derived from the private one and is visible to everyone: it’s written in the certificate.
private key d in the container public key Q = d·P in the certificate P is a point on the GOST R 34.10-2012 curveIssue a certificate
03
The document hash is transformed with the private key. Anyone with the public key can verify the signature, and it can’t be forged without the private key.
signature = Sign(private, hash)
verification = Verify(public,
hash, signature) → yes or noSign a document 04
A certificate links a public key to its owner: full name, INN, OGRN, validity period. A certificate authority signs the certificate with its key, and the CA root certificate closes the chain of trust.
Truemark CA root certificate
└─ your certificate: organization, legal entity INN
└─ signature under the documentAnalyze a certificate 05
The document is encrypted with a random session key, and the session key is encrypted for the recipient by their certificate. Only the private key owner can open the envelope.
CMS envelope ├─ recipient: serial number ├─ session key for the recipient └─ document under the session keyEncrypt a file
06
Certificates, signatures and keys are stored in ASN.1 format: a tree of typed fields. DER is the binary form; PEM and Base64 are the same thing as text.
30 82 04 58 SEQUENCE certificate
30 82 04 05 SEQUENCE tbs
A0 03 02 01 02 [0] version v3Open the decoder Questions
Didn’t find the answer? Write to us; an expert replies within 15 minutes on average. About CryptoPro and signing in the account, see the knowledge base.
Yes, all Truemark Crypto tools are free and work without sign-up.
No. Keys are created and stored in CryptoPro CSP or on a token on your computer. Signing, verification, encryption and format analysis happen in the browser. Only the certificate request with the public key and the owner’s details goes to the Truemark server.
For issuing, signing and encryption, CryptoPro CSP and CryptoPro EDS Browser plug-in. ASN.1, Base64 and JWT work in any browser without installation.
No, only for the sandbox. The production environment needs a qualified signature from an accredited certificate authority. The Truemark account works with it.
Truemark is a marking service integrated with Chestny ZNAK: GIS MT, OMS, the National Catalog and EDI. We need test certificates, signing and format analysis every day, and we’ve opened them to everyone.
Free tools
Sign up and get your first codes in 5 minutes. 7 days of full access free, no card required.
Or leave a request
We’ll answer about volumes, pricing and getting started. Leave your phone or email and your question in the request form.