diff --git a/pyrad/packet.py b/pyrad/packet.py index e3682b2..2f74305 100644 --- a/pyrad/packet.py +++ b/pyrad/packet.py @@ -111,6 +111,8 @@ def _DecodeValue(self, attr, value): if attr.values.HasBackward(value): return attr.values.GetBackward(value) else: + if attr.encrypt: + return tools.DecodeAttr('octets', value) return tools.DecodeAttr(attr.type, value) def _EncodeValue(self, attr, value):