from rest_framework.response import Response
from rest_framework.views import APIView

from api.utils import encrypt_aes_128_cbc

class EncryptPassword(APIView):
    def get(self, request):
        password = 'qwe@1234'
        response = {
            "password": password,
            "encrypted": encrypt_aes_128_cbc(password),
        }
        return Response(response, status=200)