Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More โ†’
Socket
Sign inDemoInstall
Socket

kotka

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kotka

Korean Obfuscation ToolKit Advanced

  • 0.1.1
  • PyPI
  • Socket score

Maintainers
1

Kotka

Korean Obfuscation ToolKit Advanced

PyPI Python GitHub Workflow Codecov Downloads License

ChangeLog

See CHANGELOG

Features

Text Obfuscation

Installation

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.

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with โšก๏ธ by Socket Inc