attempt to import local packages
This commit is contained in:
parent
d5ea553977
commit
988d229bce
6 changed files with 32 additions and 1 deletions
|
@ -0,0 +1 @@
|
||||||
|
49276d206b696c6c696e6720796f757220627261696e206c696b65206120706f69736f6e6f7573206d757368726f6f6d
|
|
@ -1,6 +1,6 @@
|
||||||
[project]
|
[project]
|
||||||
name = "cryptopals"
|
name = "cryptopals"
|
||||||
version = "0.0.1"
|
version = "0.1"
|
||||||
authors = [
|
authors = [
|
||||||
{ name="Joshua Flores", email="josh@heavyguys.net"},
|
{ name="Joshua Flores", email="josh@heavyguys.net"},
|
||||||
]
|
]
|
||||||
|
|
|
@ -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
5
src/cryptopals/helper.py
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
def read_file(filepath):
|
||||||
|
with open(filepath, "r") as file:
|
||||||
|
content = file.read()
|
||||||
|
return content
|
||||||
|
|
11
tests/01.py
11
tests/01.py
|
@ -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
5
tests/template.py
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
def main():
|
||||||
|
pass
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
Loading…
Add table
Add a link
Reference in a new issue