This plugin allows to generate a strongly secured encrypted file with a password . - The Save() method allows to save the file after encrypting and securing it in a folder of the user's choice. - The Generate() method allows to generate a PDF file after decrypting and checking the given password.
License
—
Deps
0
Install Size
—
Vulns
✓ 0
Published
Oct 13, 2022
$ dotnet add package EncryptedPDFThis plugin allows to generate a strongly secured encrypted file with a password .
allows to generate a PDF file after decrypting and checking the given password.
- allows to save the file after having encrypted and secured it in a folder of the user's choice.
> sourcePath: represents the full path of the file you want to encrypt.
> password: represents the password used to encrypt and/or decrypt the file.
> folderWhereToSave : represents the folder where you want to save the encrypted file.
> newFileName: represents the encrypted file name.
> extensionName : represents the encrypted file extention (by default the extention is .ferdaws).
2. The Generate() method allows to generate a PDF file after decrypting and checking the given password.
- allows to generate a PDF file after decrypting and checking the given password.
> sourcePath : represents the full path of the encrypted file you want to decrypt
> password: represents the password used to encrypt and/or decrypt the file.
> folderWhereToSave : represents the folder where you want to save the decrypted file.
nuget install EncryptedPDF.1.0.0
Or install it directly by searching for EncryptedPDF from Nuget Packages Manager.
To test this plugin we will use both methods in an ASP.NET MVC application.
public ActionResult Index()
{
CryptedPDF.PdfCrypter cryp = new CryptedPDF.PdfCrypter();
string sourcePath =@"D:\\Downloads\\CV_TOUFIK_EL_AZZAOUI.pdf";
cryp.Generate("abcd", sourcePath , "C:\\Users\\dell\\Desktop\\LIB");
return View();
}
For more information github:
by email : toufik.elazzaoui.89@gmail.com