def encodeCipherString(enctype, iv, ct, mac):
    """return bitwarden cipherstring"""
    ret = '{}.{}|{}'.format(enctype, iv.decode('utf-8'), ct.decode('utf-8'))
    if mac:
        return ret + '|' + mac.decode('utf-8')
    return ret
