Skip to main content

Korean Obfuscation ToolKit Advanced

Project description

Kotka

Korean Obfuscation ToolKit Advanced

PyPI Python GitHub Workflow Codecov Downloads License

ChangeLog

See CHANGELOG

Features

Text Obfuscation

Installation

  • Install with PyPI:
pip install kotka
  • Clone the repo:
git clone https://github.com/Astro36/kotka.git

Usage

Example

문장을 네모네모 멈뭄미의 저주 시리즈를 이용해 변환합니다:

from kotka.lipogram import replace_phoneme
from kotka.lipogram.rules import SquareDog

print(replace_phoneme('너 인성문제 있어?', rule=SquareDog()))  # '너 민섬문제 밌머?'

문장을 야민정음을 이용해 변환합니다:

from kotka.yaminizer import encode_yamin

print(encode_yamin('명작'))  # '띵작'
print(encode_yamin('대구광역시'))  # '머구팡역시'
print(encode_yamin('충무공 이순신'))  # '충무끙 이순신'

일부 글자의 자모를 분리해 읽기 어렵게 만듭니다:

from kotka.shredder import shred_syllable

print(shred_syllable('반으로 갈라져서 죽어', active_rate=0.5))  # '반ㅇㅡㄹㅗ 갈ㄹㅏ져ㅅㅓ 죽어'

License

Copyright (c) 2020 Seungjae Park

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Kotka is licensed under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kotka-0.1.1.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kotka-0.1.1-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file kotka-0.1.1.tar.gz.

File metadata

  • Download URL: kotka-0.1.1.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for kotka-0.1.1.tar.gz
Algorithm Hash digest
SHA256 da5f4c260c23fc1d0d20a3f6f4ab5247e0aaef6feed236f9080e274887015128
MD5 17872cd859b0a7972e30b4fa84d1cee4
BLAKE2b-256 24f05cda7d88868c314fcd439a4c97fc31e3910dacde1964d30c9ac8629659ab

See more details on using hashes here.

File details

Details for the file kotka-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: kotka-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for kotka-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dfc2d8b1cbdd81a68f36ce25928ba5492efaa3522034ac11731e74672fcb72c5
MD5 bc3e52c05e8dcbade89cddfd0be899eb
BLAKE2b-256 9b5e721e26931a962283330801424bb241ef2c108b376d445735d4d7bca541f5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page