# Path: djenga/encryption/kms_wrapped.py
# def encrypt(plain_text, alias, region: str = None, profile: str = None) -> str:
#     plain_text = _as_bytes(plain_text)
#     data = encrypt_bytes(plain_text, alias, region, profile)
#     return data


from argparse import ArgumentParser
from .kms_wrapped import encrypt
import os
import sys
        metavar='region_name',
        help='aws region name, e.g., us-east-2',
        default=None,
    )
    parser.add_argument(
        '-p', '--profile',
        dest='profile',
        metavar='profile_name',
        help='the name of the profile to use when connecting to aws',
        default=None,
    )
    parser.add_argument(
        '-k', '--key',
        dest='key',
        metavar='<id or alias>',
        help='the name of the key to use for encryption',
    )
    return parser


def main():
    parser = get_parser()
    args = parser.parse_args()
    # do not print prompt if input is being piped
    if sys.stdin.isatty():
        print('Enter plaintext: ', end='', file=sys.stderr)
        sys.stderr.flush()
    stdin = os.fdopen(sys.stdin.fileno(), 'rb', 0)
    plain_text = stdin.readline()
    plain_text = plain_text.decode('utf-8').rstrip()

# Path: djenga/encryption/kms_wrapped.py
# def encrypt(plain_text, alias, region: str = None, profile: str = None) -> str:
#     plain_text = _as_bytes(plain_text)
#     data = encrypt_bytes(plain_text, alias, region, profile)
#     return data


# Path: djenga/encryption/kms_wrap.py
from argparse import ArgumentParser
from .kms_wrapped import encrypt
import os
import sys

        metavar='region_name',
        help='aws region name, e.g., us-east-2',
        default=None,
    )
    parser.add_argument(
        '-p', '--profile',
        dest='profile',
        metavar='profile_name',
        help='the name of the profile to use when connecting to aws',
        default=None,
    )
    parser.add_argument(
        '-k', '--key',
        dest='key',
        metavar='<id or alias>',
        help='the name of the key to use for encryption',
    )
    return parser


def main():
    parser = get_parser()
    args = parser.parse_args()
    # do not print prompt if input is being piped
    if sys.stdin.isatty():
        print('Enter plaintext: ', end='', file=sys.stderr)
        sys.stderr.flush()
    stdin = os.fdopen(sys.stdin.fileno(), 'rb', 0)
    plain_text = stdin.readline()
    plain_text = plain_text.decode('utf-8').rstrip()

    value = encrypt(