Exemple #1
0
import k2rsa
import k2kmdfile

k2rsa.create_key('key.pkr', 'key.skr')

ret = k2kmdfile.make('kicom.lst')
if ret:
    pu = k2rsa.read_key('key.pkr')
    k = k2kmdfile.KMD('kicom.kmd', pu)
    print k.body
Exemple #2
0
import k2rsa
import k2kmdfile

k2rsa.create_key('key.pkr', 'key.skr')

ret = k2kmdfile.make('textfile.txt')

if ret:
    pu = k2rsa.read_key('key.pkr')
    k = k2kmdfile.KMD('textfile.kmd', pu)
    print k.body
Exemple #3
0
# -*- coding:utf-8 -*-
# Author: ColorLion

import sys
import k2kmdfile

if __name__ == '__main__':
    # --------------------------------------------------------------------------------------
    # 인자값 체크
    # --------------------------------------------------------------------------------------
    if len(sys.argv) != 2:
        print 'Usage: kmake.py [python source]'
        exit()

    k2kmdfile.make(sys.argv[1], True)
Exemple #4
0
# -*- coding: utf-8 -*-
"""
Created on Mon May 25 07:48:18 2020

@author: ghdhf
KMD 파일 생성 및 복호화 모듈 테스트
"""

import k2rsa
import k2kmdfile

k2rsa.create_key('key.pkr', 'key.skr', True)

#이부분이 에러..
ret = k2kmdfile.make('readme.txt')
if ret:
    pu = k2rsa.read_key('key.pkr')
    k = k2kmdfile.KMD('readme.kmd', pu)
    print(k.body)
Exemple #5
0
# -*- coding:utf-8 -*-
# Author: Kei Choi([email protected])


import os
import sys

s = os.path.dirname(
    os.path.dirname(
        os.path.abspath(__file__)
    )
) + os.sep + 'Engine' + os.sep + 'kavcore'

sys.path.append(s)

import k2kmdfile


if __name__ == '__main__':
    # -----------------------------------------------------------------
    # 인자값을 체크한다.
    # -----------------------------------------------------------------
    if len(sys.argv) != 2:
        print 'Usage : kmake.py [python source]'
        exit()

    k2kmdfile.make(sys.argv[1], True)