|
1 | | -# polycrypt-rs |
2 | | - |
3 | | -polycrypt-rs is a multi-language cryptographic library wrapper designed to provide a standardized encryption and decryption solution for organizations dealing with sensitive data, such as Protected Health Information (PHI) in healthcare settings. |
4 | | - |
5 | | -## Motivation |
6 | | - |
7 | | -In response to the challenges faced by a healthcare company client with a 100% PHI data layer field encryption requirement, polycrypt-rs was developed to: |
8 | | - |
9 | | -1. Eliminate the need for a distributed de/encryption service, which could introduce latency and become a single point of failure. |
10 | | -2. Avoid the complexity and maintenance overhead of implementing separate encryption libraries for each programming language used within the organization. |
11 | | -3. Provide a unified, efficient, and secure cryptographic solution that can be easily integrated across various programming languages and platforms. |
12 | | - |
13 | | -## Features |
14 | | - |
15 | | -- AES encryption & decryption |
16 | | -- Field-level encryption & decryption for JSON objects |
17 | | -- FFI (Foreign Function Interface) bindings for Go and Python |
18 | | -- Logging functionality |
19 | | - |
20 | | -## Requirements |
21 | | - |
22 | | -- Rust 1.55 or higher |
23 | | -- Go 1.22 or higher (for Go bindings) |
24 | | -- Python 3.6 or higher (for Python bindings) |
25 | | - |
26 | | -## Installation |
27 | | - |
28 | | -1. Clone the repository: |
29 | | - ``` |
30 | | - git clone https://github.com/HenryOwenz/polycrypt-rs.git |
31 | | - cd polycrypt-rs |
32 | | - ``` |
33 | | - |
34 | | -2. Build the Rust library: |
35 | | - ``` |
36 | | - cargo build --release |
37 | | - ``` |
38 | | - |
39 | | -## Usage |
40 | | - |
41 | | -### Using the Makefile |
42 | | - |
43 | | -The project includes a Makefile that simplifies common tasks. Here are some useful commands: |
44 | | - |
45 | | -- `make build`: Build the project in release mode |
46 | | -- `make debug`: Build the project in debug mode |
47 | | -- `make test`: Run Rust tests |
48 | | -- `make go-test`: Run Go tests |
49 | | -- `make py-test`: Run Python tests |
50 | | -- `make test-all`: Run all tests (Rust, Go, and Python) |
51 | | -- `make go-run`: Run the Go example |
52 | | -- `make py-run`: Run the Python example |
53 | | -- `make clean`: Clean the project |
54 | | -- `make doc`: Generate documentation |
55 | | - |
56 | | -To use these commands, simply run `make <command>` in the project root directory. |
57 | | - |
58 | | -### Examples |
59 | | - |
60 | | -The `examples` directory contains sample code for using polycrypt-rs with Go and Python: |
61 | | - |
62 | | -- `examples/go_example.go`: Demonstrates usage of the library in Go |
63 | | -- `examples/python_example.py`: Demonstrates usage of the library in Python |
64 | | - |
65 | | -To run the examples: |
66 | | - |
67 | | -1. For Go: `make go-run` |
68 | | -2. For Python: `make py-run` |
69 | | - |
70 | | -### Tests |
71 | | - |
72 | | -The project includes tests for Rust, Go, and Python implementations: |
73 | | - |
74 | | -- Rust tests: Located in `src` and `tests` directories |
75 | | -- Go tests: Located in `examples/go_example_test.go` |
76 | | -- Python tests: Located in `examples/python_example_test.py` |
77 | | - |
78 | | -To run the tests: |
79 | | - |
80 | | -1. For Rust: `make test` |
81 | | -2. For Go: `make go-test` |
82 | | -3. For Python: `make py-test` |
83 | | -4. For all tests: `make test-all` |
84 | | - |
85 | | -## License |
86 | | - |
87 | | -This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details. |
88 | | - |
89 | | -## Contributing |
90 | | - |
91 | | -Contributions are welcome! Please feel free to submit a Pull Request. |
92 | | - |
93 | | -1. Fork the repository |
94 | | -2. Create your feature branch (`git checkout -b feature/AmazingFeature`) |
95 | | -3. Commit your changes (`git commit -m 'Add some AmazingFeature'`) |
96 | | -4. Push to the branch (`git push origin feature/AmazingFeature`) |
97 | | -5. Open a Pull Request |
98 | | - |
99 | | -## Authors |
100 | | - |
101 | | -- Ugochukwu Henry Onwuzurike - Initial work - [GitHub](https://github.com/HenryOwenz) |
102 | | - |
103 | | -## Acknowledgments |
104 | | - |
105 | | -- The Rust community for providing excellent cryptographic libraries |
| 1 | +# polycrypt-rs |
| 2 | + |
| 3 | +polycrypt-rs is a multi-language cryptographic library wrapper designed to provide a standardized encryption and decryption solution for organizations dealing with sensitive data, such as Protected Health Information (PHI) in healthcare settings. |
| 4 | + |
| 5 | +*A systems-level cryptographic library with cross-language FFI capabilities, designed for backend infrastructure and security-critical applications.* |
| 6 | + |
| 7 | +## Motivation |
| 8 | + |
| 9 | +In response to the challenges faced by a healthcare company client with a 100% PHI data layer field encryption requirement, polycrypt-rs was developed to: |
| 10 | + |
| 11 | +1. Eliminate the need for a distributed de/encryption service, which could introduce latency and become a single point of failure. |
| 12 | +2. Avoid the complexity and maintenance overhead of implementing separate encryption libraries for each programming language used within the organization. |
| 13 | +3. Provide a unified, efficient, and secure cryptographic solution that can be easily integrated across various programming languages and platforms. |
| 14 | + |
| 15 | +## Features |
| 16 | + |
| 17 | +- AES encryption & decryption |
| 18 | +- Field-level encryption & decryption for JSON objects |
| 19 | +- FFI (Foreign Function Interface) bindings for Go and Python |
| 20 | +- Logging functionality |
| 21 | + |
| 22 | +## Requirements |
| 23 | + |
| 24 | +- Rust 1.55 or higher |
| 25 | +- Go 1.22 or higher (for Go bindings) |
| 26 | +- Python 3.6 or higher (for Python bindings) |
| 27 | + |
| 28 | +## Installation |
| 29 | + |
| 30 | +1. Clone the repository: |
| 31 | + ``` |
| 32 | + git clone https://github.com/HenryOwenz/polycrypt-rs.git |
| 33 | + cd polycrypt-rs |
| 34 | + ``` |
| 35 | + |
| 36 | +2. Build the Rust library: |
| 37 | + ``` |
| 38 | + make |
| 39 | + ``` |
| 40 | + |
| 41 | +## Usage |
| 42 | + |
| 43 | +### Using the Makefile |
| 44 | + |
| 45 | +The project includes a Makefile that simplifies common tasks. Here are some useful commands: |
| 46 | + |
| 47 | +- `make build`: Build the project in release mode |
| 48 | +- `make debug`: Build the project in debug mode |
| 49 | +- `make test`: Run Rust tests |
| 50 | +- `make go-test`: Run Go tests |
| 51 | +- `make py-test`: Run Python tests |
| 52 | +- `make test-all`: Run all tests (Rust, Go, and Python) |
| 53 | +- `make go-run`: Run the Go example |
| 54 | +- `make py-run`: Run the Python example |
| 55 | +- `make clean`: Clean the project |
| 56 | +- `make doc`: Generate documentation |
| 57 | + |
| 58 | +To use these commands, simply run `make <command>` in the project root directory. |
| 59 | + |
| 60 | +### Examples |
| 61 | + |
| 62 | +The `examples` directory contains sample code for using polycrypt-rs with Go and Python: |
| 63 | + |
| 64 | +- `examples/go_example.go`: Demonstrates usage of the library in Go |
| 65 | +- `examples/python_example.py`: Demonstrates usage of the library in Python |
| 66 | + |
| 67 | +To run the examples: |
| 68 | + |
| 69 | +1. For Go: `make go-run` |
| 70 | +2. For Python: `make py-run` |
| 71 | + |
| 72 | +### Tests |
| 73 | + |
| 74 | +The project includes tests for Rust, Go, and Python implementations: |
| 75 | + |
| 76 | +- Rust tests: Located in `src` and `tests` directories |
| 77 | +- Go tests: Located in `examples/go_example_test.go` |
| 78 | +- Python tests: Located in `examples/python_example_test.py` |
| 79 | + |
| 80 | +To run the tests: |
| 81 | + |
| 82 | +1. For Rust: `make test` |
| 83 | +2. For Go: `make go-test` |
| 84 | +3. For Python: `make py-test` |
| 85 | +4. For all tests: `make test-all` |
| 86 | + |
| 87 | +## License |
| 88 | + |
| 89 | +This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details. |
| 90 | + |
| 91 | +## Contributing |
| 92 | + |
| 93 | +Contributions are welcome! Please feel free to submit a Pull Request. |
| 94 | + |
| 95 | +1. Fork the repository |
| 96 | +2. Create your feature branch (`git checkout -b feature/AmazingFeature`) |
| 97 | +3. Commit your changes (`git commit -m 'Add some AmazingFeature'`) |
| 98 | +4. Push to the branch (`git push origin feature/AmazingFeature`) |
| 99 | +5. Open a Pull Request |
| 100 | + |
| 101 | +## Authors |
| 102 | + |
| 103 | +- Ugochukwu Henry Onwuzurike - Initial work - [GitHub](https://github.com/HenryOwenz) |
| 104 | + |
| 105 | +## Acknowledgments |
| 106 | + |
| 107 | +- The Rust community for providing excellent cryptographic libraries |
0 commit comments