Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/ebellocchia/aes_cipher into…
Browse files Browse the repository at this point in the history
… main
  • Loading branch information
ebellocchia committed Apr 9, 2021
2 parents f57a645 + 55435bb commit 686e5e6
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,27 +43,27 @@ To run the tests:
*FileEncrypter* class:

- **FileEncrypter.Encrypt(file_in, passwords [, salt, itr_num])**
- file_in: input file
- passwords: single password (string) or multiple passwords (array of passwords)
- salt: custom salt. If not specified, the default salt "[]=?AeS_CiPhEr><()" will be used.
- itr_num: number of iterations for PBKDF2-SHA512 algorithm. If not specified, the default value of 524288 (1024 * 512) will be used.
- *file_in*: input file
- *passwords*: single password (string) or multiple passwords (array of passwords)
- *salt*: custom salt. If not specified, the default salt "[]=?AeS_CiPhEr><()" will be used.
- *itr_num*: number of iterations for PBKDF2-SHA512 algorithm. If not specified, the default value of 524288 (1024 * 512) will be used.
- **FileEncrypter.GetEncryptedData(data_encoding)**
- data_encoding: *FileDataEncodings.BINARY* for binary file, *FileDataEncodings.BASE64* for base64
- *data_encoding*: *FileDataEncodings.BINARY* for binary file, *FileDataEncodings.BASE64* for base64
- **FileEncrypter.SaveTo(file_out [, data_encoding])**
- file_out: output file to be saved
- data_encoding: *FileDataEncodings.BINARY* for binary file (default value), *FileDataEncodings.BASE64* for base64
- *file_out*: output file to be saved
- *data_encoding*: *FileDataEncodings.BINARY* for binary file (default value), *FileDataEncodings.BASE64* for base64

*FileDecrypter* class:

- **FileDecrypter.Decrypt(file_in, passwords [, salt, itr_num])**
- file_in: input file
- passwords: single password (string) or multiple passwords (array of passwords)
- salt: custom salt. If not specified the default salt "[]=?AeS_CiPhEr><()" will be used.
- itr_num: number of iterations for PBKDF2-SHA512 algorithm. If not specified, the default value of 524288 (1024 * 512) will be used.
- *file_in*: input file
- *passwords*: single password (string) or multiple passwords (array of passwords)
- *salt*: custom salt. If not specified the default salt "[]=?AeS_CiPhEr><()" will be used.
- *itr_num*: number of iterations for PBKDF2-SHA512 algorithm. If not specified, the default value of 524288 (1024 * 512) will be used.
- **FileDecrypter.GetDecryptedData(data_encoding)**
- data_encoding: *FileDataEncodings.BINARY* for binary file, *FileDataEncodings.BASE64* for base64
- *data_encoding*: *FileDataEncodings.BINARY* for binary file, *FileDataEncodings.BASE64* for base64
- **FileDecrypter.SaveTo(file_out)**
- file_out: output file to be saved
- *file_out*: output file to be saved

## Examples

Expand Down

0 comments on commit 686e5e6

Please sign in to comment.