1
0
mirror of https://github.com/wolfSSL/wolfssl.git synced 2026-10-24 04:09:07 +03:00
Files
wolfssl/wrapper/python/wolfcrypt/docs/symmetric.rst
Moisés Guimarães d3d7446a24 removes 3DES from docs
2017-01-21 15:31:26 -02:00

962 B

Symmetric Key Algorithms

wolfcrypt.ciphers

Symmetric key algorithms are encryption algorithms that use the same cryptographic keys for both encryption and decryption of data. This operation is also known as Symmetric Key Encryption.

wolfcrypt provides access to the following Symmetric Key Ciphers:

Symmetric Key Encryption Classes

Interface

All Symmetric Key Ciphers available in this module implements the following interface:

Cipher

Classes

Aes

Example

>>> from wolfcrypt.ciphers import Aes, MODE_CBC >>> >>> cipher = Aes(b'0123456789abcdef', MODE_CBC, b'1234567890abcdef') >>> ciphertext = cipher.encrypt('now is the time ') >>> ciphertext b'x95x94x92W_Bx81S,xccx9dFwxa23xcb' >>> cipher.decrypt(ciphertext) b'now is the time '