Common
A library of common classes.
Cryptography Class Reference

Contains methods related to encryption and decryption. More...

Static Public Member Functions

static T DecryptFromStream< T > (Stream stream, XmlObjectSerializer serializer, byte[] key)
 Decrypts the object from the stream. More...
 
static string DecryptTextFile (string path, byte[] key)
 Returns the decrypted text for the file at the specified path. More...
 
static void EncryptToStream< T > (Stream stream, XmlObjectSerializer serializer, T graph, byte[] key)
 Encrypts the object to the stream. More...
 

Detailed Description

Contains methods related to encryption and decryption.

Definition at line 10 of file Cryptography.cs.

Member Function Documentation

◆ DecryptFromStream< T >()

static T DecryptFromStream< T > ( Stream  stream,
XmlObjectSerializer  serializer,
byte[]  key 
)
static

Decrypts the object from the stream.

Parameters
streamThe stream.
serializerThe serializer.
keyThe secret key.

Definition at line 58 of file Cryptography.cs.

◆ DecryptTextFile()

static string DecryptTextFile ( string  path,
byte[]  key 
)
static

Returns the decrypted text for the file at the specified path.

Parameters
pathThe file path.
keyThe secret key.

Definition at line 17 of file Cryptography.cs.

◆ EncryptToStream< T >()

static void EncryptToStream< T > ( Stream  stream,
XmlObjectSerializer  serializer,
graph,
byte[]  key 
)
static

Encrypts the object to the stream.

Parameters
streamThe stream.
serializerThe serializer.
graphThe object graph.
keyThe secret key.

Definition at line 41 of file Cryptography.cs.


The documentation for this class was generated from the following file: