Skip to content

EmbedPy2C integrates Python into C for cryptographic operations, emphasizing SHA256 and SHA3-256 primitives. This proof-of-concept demonstrates powerful synergy, allowing developers to combine Python's flexibility with C's efficiency.

License

Notifications You must be signed in to change notification settings

giusvale-dev/EmbedPy2C

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C Integration with Python Hash Calculator

This C code demonstrates how to integrate the Python-based hash calculator module into a C program. The provided Makefile simplifies the build process.

Overview

The C code includes a function named sha_256 that interfaces with the Python script. This function allows you to compute SHA-256 or SHA3-256 hashes for a given input string.

Prerequisites

Ensure that you have Python 3.x installed on your system. The Makefile assumes Python 3.11; adjust the flags accordingly for a different Python version.

How to Use

  1. Build the executable using the provided Makefile:

    make
  2. Run the compiled C executable:

    ./build/application

About

EmbedPy2C integrates Python into C for cryptographic operations, emphasizing SHA256 and SHA3-256 primitives. This proof-of-concept demonstrates powerful synergy, allowing developers to combine Python's flexibility with C's efficiency.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published