attempt to import local packages

This commit is contained in:
Joshua Flores 2025-04-25 20:32:42 -04:00
parent d5ea553977
commit 988d229bce
No known key found for this signature in database
GPG key ID: CE41E342DBBBB9B7
6 changed files with 32 additions and 1 deletions

View file

@ -0,0 +1 @@
49276d206b696c6c696e6720796f757220627261696e206c696b65206120706f69736f6e6f7573206d757368726f6f6d

View file

@ -1,6 +1,6 @@
[project]
name = "cryptopals"
version = "0.0.1"
version = "0.1"
authors = [
{ name="Joshua Flores", email="josh@heavyguys.net"},
]

View file

@ -0,0 +1,9 @@
import base64
# this function takes a string representing hex, converts to bytes, and re-encodes to base64
def hex_to_base64(hex_string)
byte_array = bytearray.fromhex(hex_string)
base64_value = base64.b64encode(byte_array)
return base64_value

5
src/cryptopals/helper.py Normal file
View file

@ -0,0 +1,5 @@
def read_file(filepath):
with open(filepath, "r") as file:
content = file.read()
return content

View file

@ -0,0 +1,11 @@
#!/usr/bin/env python
from cryptopals import helper
from cryptopals import cryptopals
def main():
pass
if __name__ == '__main__':
main()

5
tests/template.py Normal file
View file

@ -0,0 +1,5 @@
def main():
pass
if __name__ == '__main__':
main()