 # coding: cp852
#PY_3
#VER_FORMAT: "v(M\d3)_(S\d3)_(C\d8)\.(R\d3)" !_DO+R

####################################\#
#
# mkPASS - Tworzy hasˆo prywatne i publiczne Cezara.
# AUTO_ver: v000_000_00000000.001
# basE\:[26A11]        date[26A11]
# hist:[???]
#                 KEyS_T
#
####################################//#

#.  
#-v000_000_00000000.001    [26A11]: START

import os,sys

from lib_v001_000 import *
from glob     import *

VERSION = "v000_000_00000000.001"  # AUTO_ver
DATE = "26A11"

P=input('Podaj hasˆo: ')
PV=[ord(x) & 0x1f for x in P]
PU=[26-(ord(x) & 0x1f) for x in P]

print(f'{PV=}')
print(f'{PU=}')

with open('pass.priv','wt') as F:
 F.write('=== '+('-'.join([f'0x{x:02x}' for x in PV]))+' ===\n')

with open('pass.pub','wt') as F:
 F.write('=== '+('-'.join([f'0x{x:02x}' for x in PU]))+' ===\n')