Write an application that uses C# to encrypt and decrypt a file.
AES
to encrypt file p into file C and generate private key KsRSA
to generate Kprivate and Kpublic and encrypt Ks by Kpublic.Hoang Huu Minh An - 20127102
Tran Tien Hoang - 20127424
Using System.Security.Cryptography
Class EncryptionAlgorithm
Kprivate
and Kpublic
by RSA
algorithm.SHA-1
, SHA-256
Ks
by AES
algorithm.
Encrypt
Decrypt
Allows users to encrypt a file in steps
Ks
and encrypts file P into file C using AES
algorithm.Private
and Public
key pairs of the RSA
algorithm and encrypts the key Ks
with the Kpublic key, the output is the string Kx
.Kx
string with the SHA-1 hash value of Kprivate (called HKprivate
). Can be exported to a C.metadata
file, where C is the name of the above C file, the file structure is optional (XML, JSON, Plain text...).
Allows users to decrypt a file in steps