Files
pydarc/utils_test.ipynb
2024-05-17 14:30:26 -05:00

121 lines
2.5 KiB
Plaintext

{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": true,
"ExecuteTime": {
"end_time": "2023-12-27T16:48:00.857374Z",
"start_time": "2023-12-27T16:48:00.827545Z"
}
},
"outputs": [],
"source": [
"from src.darc_key import DarcKey"
]
},
{
"cell_type": "code",
"execution_count": 2,
"outputs": [],
"source": [
"rows = 4\n",
"columns = 26\n",
"input_block_length = 10"
],
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2023-12-27T16:48:01.105305Z",
"start_time": "2023-12-27T16:48:01.097428Z"
}
}
},
{
"cell_type": "code",
"execution_count": 3,
"outputs": [],
"source": [
"serverEphemeralKey = DarcKey.init_mask_matrix(rows, columns, 255)"
],
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2023-12-27T16:48:02.630012Z",
"start_time": "2023-12-27T16:48:02.626613Z"
}
}
},
{
"cell_type": "code",
"execution_count": 3,
"outputs": [],
"source": [
"a = \"8\t\t\t\t\t\t\t\t\t1\t\t\t\t\t\t\t\t\t4\t\t\t\t\t\t\t\t\t5\t\t\t\t\t\t\t\t\t2\t\t\t\t\t\t\t\t\t3\t\t\t\t\t\t\t\t\t7\t\t\t\t\t\t\t\t\t6\t\t\t\t\t\t\t\t\t0\t\t\t\t\t\t\t\t\t9\t\t\t\t\t\t\t\t\""
],
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2024-01-16T01:13:13.747045Z",
"start_time": "2024-01-16T01:13:13.739449Z"
}
}
},
{
"cell_type": "code",
"execution_count": 4,
"outputs": [
{
"data": {
"text/plain": "['8', '1', '4', '5', '2', '3', '7', '6', '0', '9']"
},
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"a.split()"
],
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2024-01-16T01:13:14.470781Z",
"start_time": "2024-01-16T01:13:14.467313Z"
}
}
},
{
"cell_type": "code",
"execution_count": null,
"outputs": [],
"source": [],
"metadata": {
"collapsed": false
}
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.6"
}
},
"nbformat": 4,
"nbformat_minor": 0
}